type database/sql.Tx
29 uses
database/sql (current package)
sql.go#L1874: func (db *DB) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) {
sql.go#L1875: var tx *Tx
sql.go#L1891: func (db *DB) Begin() (*Tx, error) {
sql.go#L1895: func (db *DB) begin(ctx context.Context, opts *TxOptions, strategy connReuseStrategy) (tx *Tx, err error) {
sql.go#L1904: func (db *DB) beginDC(ctx context.Context, dc *driverConn, release func(error), opts *TxOptions) (tx *Tx, err error) {
sql.go#L1921: tx = &Tx{
sql.go#L2115: func (c *Conn) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) {
sql.go#L2171: type Tx struct {
sql.go#L2214: func (tx *Tx) awaitDone() {
sql.go#L2229: func (tx *Tx) isDone() bool {
sql.go#L2240: func (tx *Tx) close(err error) {
sql.go#L2250: func (tx *Tx) grabConn(ctx context.Context) (*driverConn, releaseConn, error) {
sql.go#L2270: func (tx *Tx) txCtx() context.Context {
sql.go#L2278: func (tx *Tx) closemuRUnlockRelease(error) {
sql.go#L2283: func (tx *Tx) closePrepared() {
sql.go#L2292: func (tx *Tx) Commit() error {
sql.go#L2331: func (tx *Tx) rollback(discardConn bool) error {
sql.go#L2363: func (tx *Tx) Rollback() error {
sql.go#L2377: func (tx *Tx) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
sql.go#L2402: func (tx *Tx) Prepare(query string) (*Stmt, error) {
sql.go#L2422: func (tx *Tx) StmtContext(ctx context.Context, stmt *Stmt) *Stmt {
sql.go#L2510: func (tx *Tx) Stmt(stmt *Stmt) *Stmt {
sql.go#L2516: func (tx *Tx) ExecContext(ctx context.Context, query string, args ...any) (Result, error) {
sql.go#L2529: func (tx *Tx) Exec(query string, args ...any) (Result, error) {
sql.go#L2534: func (tx *Tx) QueryContext(ctx context.Context, query string, args ...any) (*Rows, error) {
sql.go#L2547: func (tx *Tx) Query(query string, args ...any) (*Rows, error) {
sql.go#L2557: func (tx *Tx) QueryRowContext(ctx context.Context, query string, args ...any) *Row {
sql.go#L2571: func (tx *Tx) QueryRow(query string, args ...any) *Row {
sql.go#L2595: _ stmtConnGrabber = &Tx{}