Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13a9027

Browse files
authored
docs: Add documentation for using DML statements in a transaction (#44)
Co-authored-by: larkee <[email protected]>
1 parent e378ba0 commit 13a9027

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/transaction-usage.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ fails if the result set is too large,
5151
print(row)
5252
5353
54+
Execute a SQL DML Statement
55+
------------------------------
56+
57+
Modify data from a query against tables in the database. Calls
58+
the ``ExecuteSql`` API, and returns the number of rows affected,
59+
60+
.. code:: python
61+
62+
QUERY = 'DELETE from Table WHERE 1=1'
63+
row_count = transaction.execute_sql(QUERY)
64+
65+
5466
Insert records using a Transaction
5567
----------------------------------
5668

0 commit comments

Comments
 (0)