jdbc-transaction: JDBC transaction management

Description Usage Arguments Details Value

Description

By default, dbj is in auto-commit mode. dbBegin starts a transaction and turns auto-commit off. dbCommit and dbRollback commit and rollback the transaction, respectively and turn auto-commit on.

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'JDBCConnection'
dbBegin(conn, savepoint_name = NULL)

## S4 method for signature 'JDBCConnection'
dbCommit(conn, savepoint_name = NULL)

## S4 method for signature 'JDBCConnection'
dbRollback(conn, savepoint_name = NULL)

Arguments

conn

a JDBCConnection object, produced by dbConnect

savepoint_name

Supply a name to use a named savepoint. This allows you to nest multiple transaction

Details

If the database supports savepoints (feature.savepoints in dbGetInfo is TRUE)

Value

A boolean, indicating success or failure.


hoesler/dbj documentation built on May 17, 2019, 4:36 p.m.