File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,23 +148,6 @@ The transaction will be active until the `PostgresTransaction` object falls out
148148of scope. A transaction will commit by default. Nested transactions are
149149supported 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-
168151Error Handling
169152--------------
170153The methods described above will fail if there is an error. For each of these
You can’t perform that action at this time.
0 commit comments