transactions require an open connection, so you will need to manually create the connection,
preform queries with gq
and then and close the
connection.
Commiting an SQL transaction saves the actions made durreing the transaction to the database.
Rollback resets any transactions that might have happened durring the transaction.
Determine if there is an active transaction
1 2 3 4 5 6 7 | trans_begin(.db = NULL)
trans_commit(force = FALSE, .db = NULL)
trans_rollback(force = FALSE, .db = NULL)
trans_active(force = FALSE, .db = NULL)
|
.db |
the connection to use throughout the transaction |
force |
force the action to take place |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.