diff --git a/docs/transaction-usage.rst b/docs/transaction-usage.rst index 4e943ed405..e475894939 100644 --- a/docs/transaction-usage.rst +++ b/docs/transaction-usage.rst @@ -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 ----------------------------------