diff --git a/hasql-backend.cabal b/hasql-backend.cabal
--- a/hasql-backend.cabal
+++ b/hasql-backend.cabal
@@ -1,7 +1,7 @@
 name:
   hasql-backend
 version:
-  0.3.0
+  0.4.0
 synopsis:
   API for backends of "hasql"
 description:
diff --git a/library/Hasql/Backend.hs b/library/Hasql/Backend.hs
--- a/library/Hasql/Backend.hs
+++ b/library/Hasql/Backend.hs
@@ -120,7 +120,7 @@
   UnitTx (Stmt c) x |
   CountTx (Stmt c) (Word64 -> x) |
   VectorTx (Stmt c) (Vector (ResultRow c) -> x) |
-  StreamTx (Stmt c) (ListT (Tx c) (ResultRow c) -> x)
+  StreamTx Int (Stmt c) (ListT (Tx c) (ResultRow c) -> x)
   deriving (Functor)
 
 
@@ -133,8 +133,8 @@
 vectorTx :: Stmt c -> Tx c (Vector (ResultRow c))
 vectorTx s = liftF (VectorTx s id)
 
-streamTx :: Stmt c -> Tx c (ListT (Tx c) (ResultRow c))
-streamTx s = liftF (StreamTx s id)
+streamTx :: Int -> Stmt c -> Tx c (ListT (Tx c) (ResultRow c))
+streamTx n s = liftF (StreamTx n s id)
 
 
 
