Skip to content

Commit 6500cbe

Browse files
nwoolmeramunra
andauthored
flush() transaction -> transactional (#72)
Co-authored-by: Adam Cimarosti <[email protected]>
1 parent ce38210 commit 6500cbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/sender.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,14 @@ buffers.
399399
400400
conf = 'http::addr=localhost:9000;'
401401
with Sender.from_conf(conf) as sender:
402-
sender.flush(buf, transaction=True)
402+
sender.flush(buf, transactional=True)
403403
404-
The ``transaction`` parameter is optional and defaults to ``False``.
404+
The ``transactional`` parameter is optional and defaults to ``False``.
405405
When set to ``True``, the buffer is guaranteed to be committed as a single
406406
transaction, but must only contain rows for a single table.
407407

408+
You should not mix using a transaction block with flushing an independent buffer transactionally.
409+
408410
Multiple Databases
409411
------------------
410412

0 commit comments

Comments
 (0)