Skip to content

Commit 42f5224

Browse files
committed
Remove lazy query info from README
It's a pretty obscure feature.
1 parent 936b026 commit 42f5224

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -148,23 +148,6 @@ The transaction will be active until the `PostgresTransaction` object falls out
148148
of scope. A transaction will commit by default. Nested transactions are
149149
supported via savepoints.
150150

151-
Lazy Queries
152-
------------
153-
Some queries may return a large amount of data. Statements prepared within a
154-
transaction have an additional method, `lazy_query`. The rows returned from a
155-
call to `lazy_query` are pulled from the database in batches as needed:
156-
```rust
157-
{
158-
let trans = conn.transaction();
159-
let stmt = trans.prepare(query)
160-
161-
// No more than 100 rows will be stored in memory at any time
162-
for row in stmt.lazy_query(100, params) {
163-
// do things
164-
}
165-
}
166-
```
167-
168151
Error Handling
169152
--------------
170153
The methods described above will fail if there is an error. For each of these

0 commit comments

Comments
 (0)