type database/sql.Tx
29 uses
database/sql (current package)
sql.go#L1869: func (db *DB) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) {
sql.go#L1870: var tx *Tx
sql.go#L1886: func (db *DB) Begin() (*Tx, error) {
sql.go#L1890: func (db *DB) begin(ctx context.Context, opts *TxOptions, strategy connReuseStrategy) (tx *Tx, err error) {
sql.go#L1899: func (db *DB) beginDC(ctx context.Context, dc *driverConn, release func(error), opts *TxOptions) (tx *Tx, err error) {
sql.go#L1916: tx = &Tx{
sql.go#L2110: func (c *Conn) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) {
sql.go#L2166: type Tx struct {
sql.go#L2209: func (tx *Tx) awaitDone() {
sql.go#L2224: func (tx *Tx) isDone() bool {
sql.go#L2235: func (tx *Tx) close(err error) {
sql.go#L2245: func (tx *Tx) grabConn(ctx context.Context) (*driverConn, releaseConn, error) {
sql.go#L2265: func (tx *Tx) txCtx() context.Context {
sql.go#L2273: func (tx *Tx) closemuRUnlockRelease(error) {
sql.go#L2278: func (tx *Tx) closePrepared() {
sql.go#L2287: func (tx *Tx) Commit() error {
sql.go#L2326: func (tx *Tx) rollback(discardConn bool) error {
sql.go#L2358: func (tx *Tx) Rollback() error {
sql.go#L2372: func (tx *Tx) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
sql.go#L2397: func (tx *Tx) Prepare(query string) (*Stmt, error) {
sql.go#L2417: func (tx *Tx) StmtContext(ctx context.Context, stmt *Stmt) *Stmt {
sql.go#L2505: func (tx *Tx) Stmt(stmt *Stmt) *Stmt {
sql.go#L2511: func (tx *Tx) ExecContext(ctx context.Context, query string, args ...any) (Result, error) {
sql.go#L2524: func (tx *Tx) Exec(query string, args ...any) (Result, error) {
sql.go#L2529: func (tx *Tx) QueryContext(ctx context.Context, query string, args ...any) (*Rows, error) {
sql.go#L2542: func (tx *Tx) Query(query string, args ...any) (*Rows, error) {
sql.go#L2552: func (tx *Tx) QueryRowContext(ctx context.Context, query string, args ...any) *Row {
sql.go#L2566: func (tx *Tx) QueryRow(query string, args ...any) *Row {
sql.go#L2590: _ stmtConnGrabber = &Tx{}