Home | History | Annotate | Download | only in sql

Lines Matching refs:Transaction

117 // IsolationLevel is the transaction isolation level used in TxOptions.
135 // TxOptions holds the transaction options to be used in DB.BeginTx.
137 // Isolation is the transaction isolation level.
293 // observed within a transaction. Once DB.Begin is called, the
295 // Rollback is called on the transaction, that transaction's
1328 // BeginTx starts a transaction.
1330 // The provided context is used until the transaction is committed or rolled back.
1332 // the transaction. Tx.Commit will return an error if the context provided to
1353 // Begin starts a transaction. The default isolation level is dependent on
1373 // Schedule the transaction to rollback when the context is cancelled.
1392 // Tx is an in-progress database transaction.
1394 // A transaction must end with a call to Commit or Rollback.
1397 // transaction fail with ErrTxDone.
1399 // The statements prepared for a transaction by calling
1400 // the transaction's Prepare or Stmt methods are closed
1405 // closemu prevents the transaction from closing while there
1421 // All Stmts prepared for this transaction. These will be closed after the
1422 // transaction has been committed or rolled back.
1431 // ctx lives for the life of the transaction.
1436 // the transaction if it's not already done.
1438 // Wait for either the transaction to be committed or rolled
1443 // transaction is closed and the resources are released. This
1444 // rollback does nothing if the transaction has already been
1453 // ErrTxDone is returned by any operation that is performed on a transaction
1455 var ErrTxDone = errors.New("sql: Transaction has already been committed or rolled back")
1488 // Closes all Stmts prepared for this transaction.
1497 // Commit commits the transaction.
1518 // rollback aborts the transaction and optionally forces the pool to discard
1538 // Rollback aborts the transaction.
1543 // Prepare creates a prepared statement for use within a transaction.
1545 // The returned statement operates within the transaction and will be closed
1546 // when the transaction has been committed or rolled back.
1548 // To use an existing prepared statement on this transaction, see Tx.Stmt.
1552 // will run in the transaction context.
1598 // Prepare creates a prepared statement for use within a transaction.
1600 // The returned statement operates within the transaction and can no longer
1601 // be used once the transaction has been committed or rolled back.
1603 // To use an existing prepared statement on this transaction, see Tx.Stmt.
1608 // StmtContext returns a transaction-specific prepared statement from
1618 // The returned statement operates within the transaction and will be closed
1619 // when the transaction has been committed or rolled back.
1656 // Stmt returns a transaction-specific prepared statement from
1666 // The returned statement operates within the transaction and will be closed
1667 // when the transaction has been committed or rolled back.
1768 // If in a transaction, else both nil:
1888 // In a transaction, we always use the connection that the
1889 // transaction was created on.