Skip to content

Commit

Permalink
docs: Add documentation for using DML statements in a transaction (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: larkee <larkee@users.noreply.github.com>
  • Loading branch information
larkee and larkee committed Mar 24, 2020
1 parent e378ba0 commit 13a9027
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/transaction-usage.rst
Expand Up @@ -51,6 +51,18 @@ fails if the result set is too large,
print(row)
Execute a SQL DML Statement
------------------------------

Modify data from a query against tables in the database. Calls
the ``ExecuteSql`` API, and returns the number of rows affected,

.. code:: python
QUERY = 'DELETE from Table WHERE 1=1'
row_count = transaction.execute_sql(QUERY)
Insert records using a Transaction
----------------------------------

Expand Down

0 comments on commit 13a9027

Please sign in to comment.