- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ConnBeginTx (0.47 sec)
-
src/database/sql/ctxutil.go
default: case <-ctx.Done(): return nil, ctx.Err() } return si.Query(dargs) } func ctxDriverBegin(ctx context.Context, opts *TxOptions, ci driver.Conn) (driver.Tx, error) { if ciCtx, is := ci.(driver.ConnBeginTx); is { dopts := driver.TxOptions{} if opts != nil { dopts.Isolation = driver.IsolationLevel(opts.Isolation) dopts.ReadOnly = opts.ReadOnly } return ciCtx.BeginTx(ctx, dopts) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 02 12:57:37 UTC 2019 - 3.5K bytes - Viewed (0) -
src/database/sql/driver/driver.go
// // This type should be considered identical to [database/sql.TxOptions]. type TxOptions struct { Isolation IsolationLevel ReadOnly bool } // ConnBeginTx enhances the [Conn] interface with context and [TxOptions]. type ConnBeginTx interface { // BeginTx starts and returns a new transaction. // If the context is canceled by the user the sql package will
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 09:04:12 UTC 2023 - 20.9K bytes - Viewed (0) -
api/go1.8.txt
pkg database/sql, const LevelSnapshot IsolationLevel pkg database/sql, const LevelWriteCommitted = 3 pkg database/sql, const LevelWriteCommitted IsolationLevel pkg database/sql/driver, type ConnBeginTx interface { BeginTx } pkg database/sql/driver, type ConnBeginTx interface, BeginTx(context.Context, TxOptions) (Tx, error) pkg database/sql/driver, type ConnPrepareContext interface { PrepareContext }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 21 05:25:57 UTC 2016 - 16.3K bytes - Viewed (0) -
src/database/sql/sql_test.go
} if keepConnOnRollback { waitForFree(t, db, 1) } else { waitForFree(t, db, 0) } } // TestUnsupportedOptions checks that the database fails when a driver that // doesn't implement ConnBeginTx is used with non-default options and an // un-cancellable context. func TestUnsupportedOptions(t *testing.T) { db := newTestDB(t, "people") defer closeDB(t, db) _, err := db.BeginTx(context.Background(), &TxOptions{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 111.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(Null).ConvertValue", Method, 0}, {"(RowsAffected).LastInsertId", Method, 0}, {"(RowsAffected).RowsAffected", Method, 0}, {"Bool", Var, 0}, {"ColumnConverter", Type, 0}, {"Conn", Type, 0}, {"ConnBeginTx", Type, 8}, {"ConnPrepareContext", Type, 8}, {"Connector", Type, 10}, {"DefaultParameterConverter", Var, 0}, {"Driver", Type, 0}, {"DriverContext", Type, 10}, {"ErrBadConn", Var, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)