Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DATA-DOG/go-txdb
/ functions
Functions
84 in github.com/DATA-DOG/go-txdb
⨍
Functions
84
◇
Types & classes
13
↓ 41 callers
Method
Close
()
db.go:235
↓ 24 callers
Method
Open
(dsn string)
db.go:172
↓ 21 callers
Method
Exec
(query string, args []driver.Value)
db.go:331
↓ 20 callers
Method
Run
Run registers the driver, if not already registered, then calls f with the driver name.
tests/db_test.go:91
↓ 12 callers
Method
DB
()
db.go:160
↓ 7 callers
Method
Prepare
(query string)
db.go:315
↓ 6 callers
Method
Begin
()
db.go:259
↓ 6 callers
Method
beginOnce
()
db.go:224
↓ 5 callers
Method
Next
(dest []driver.Value)
db.go:447
↓ 5 callers
Method
QueryContext
Implement the "QueryerContext" interface
context.go:71
↓ 5 callers
Method
Rollback
(id string)
options.go:10
↓ 5 callers
Method
closeDone
(withErr bool)
db.go:416
↓ 4 callers
Method
Query
(query string, args []driver.Value)
db.go:351
↓ 4 callers
Function
buildRows
(r *sql.Rows)
context.go:10
↓ 4 callers
Function
mapArgs
(args []driver.Value)
db.go:343
↓ 4 callers
Function
mapNamedArgs
(args []driver.NamedValue)
context.go:168
↓ 3 callers
Method
Done
()
db.go:521
↓ 3 callers
Method
Driver
Driver satisfies the [database/sql/driver.Connector] interface.
db.go:156
↓ 3 callers
Method
ExecContext
Implement the "ExecerContext" interface
context.go:93
↓ 3 callers
Method
Ping
Implement the "Pinger" interface
context.go:145
↓ 3 callers
Method
beginTxOnce
(ctx context.Context, done <-chan struct{})
context.go:42
↓ 2 callers
Method
NextResultSet
Implement the "RowsNextResultSet" interface
context.go:33
↓ 2 callers
Method
PrepareContext
Implement the "ConnPrepareContext" interface
context.go:114
↓ 2 callers
Method
drivers
driver returns the subset of d whose driver match one of the provided names. Useful for tests that require specific database driver capabilities.
tests/db_test.go:109
↓ 2 callers
Method
dsn
dsn returns the base dsn (without DB name) and the full dsn (with dbname) for the test driver, or calls t.Skip if it is unset or disabled.
tests/db_test.go:49
↓ 2 callers
Method
read
(rs *sql.Rows)
db.go:464
↓ 1 callers
Method
BeginTx
Implement the "ConnBeginTx" interface
context.go:109
↓ 1 callers
Method
ColumnTypeDatabaseTypeName
(index int)
db.go:443
↓ 1 callers
Method
Columns
()
db.go:439
↓ 1 callers
Method
Commit
()
db.go:281
↓ 1 callers
Method
Create
(id string)
options.go:8
↓ 1 callers
Method
Done
()
tests/db_test.go:503
↓ 1 callers
Method
Err
()
tests/db_test.go:508
↓ 1 callers
Method
HasNextResultSet
Implement the "RowsNextResultSet" interface
context.go:28
↓ 1 callers
Method
Release
(id string)
options.go:9
↓ 1 callers
Method
Value
(key interface{})
tests/db_test.go:509
↓ 1 callers
Function
bootstrap
bootstrap bootstraps the database for tests.
tests/bootstrap_test.go:37
↓ 1 callers
Function
createDB
(t *testing.T, driver, dsn string)
tests/bootstrap_test.go:59
↓ 1 callers
Method
deleteConn
(dsn string)
db.go:209
↓ 1 callers
Method
register
(t *testing.T)
tests/db_test.go:76
↓ 1 callers
Function
startMySQL
(t *testing.T)
tests/bootstrap_test.go:93
↓ 1 callers
Function
startPostgres
(t *testing.T)
tests/bootstrap_test.go:72
↓ 1 callers
Method
startTestContainer
(t *testing.T)
tests/db_test.go:65
Method
CheckNamedValue
Implement the NamedValueChecker interface
db.go:371
Method
Close
()
db.go:402
Method
Close
()
db.go:460
Method
Close
()
db.go:510
Method
ColumnTypeDatabaseTypeName
(index int)
db.go:502
Method
ColumnTypeScanType
(index int)
db.go:506
Method
Columns
()
db.go:498
Method
Connect
Connect satisfies the [database/sql/driver.Connector] interface.
db.go:148
Method
Create
(id string)
options.go:15
Method
Deadline
()
tests/db_test.go:502
Method
Exec
(args []driver.Value)
db.go:390
Method
ExecContext
Implement the "StmtExecContext" interface
context.go:150
Function
New
New returns a [database/sql/driver.Connector], which can be passed to [database/sql.OpenDB]. This can be used in place of [Register]. It takes the sam
db.go:68
Method
Next
advances to next row
db.go:515
Method
NumInput
()
db.go:398
Method
OpenConnector
OpenConnector satisfies the [database/sql/driver.DriverContext] interface.
db.go:165
Method
Query
(args []driver.Value)
db.go:407
Method
QueryContext
Implement the "StmtQueryContext" interface
context.go:159
Function
Register
Register registers a txdb sql driver under the given sql driver name which can be used to open a single transaction based database connection. When O
db.go:99
Method
Release
(id string)
options.go:18
Method
Rollback
(id string)
options.go:21
Method
Rollback
()
db.go:298
Method
Run
Run iterates over the configured drivers, and calls [testDriver.Run] on each.
tests/db_test.go:100
Function
SavePointOption
SavePointOption allows to modify the logic for transaction save points. In such cases if your driver does not support it, use nil. If not compatible w
options.go:29
Function
TestIssue49
https://github.com/DATA-DOG/go-txdb/issues/49
tests/db_test.go:757
Function
TestMysqlShouldBeAbleToLockTables
(t *testing.T)
tests/db_test.go:580
Function
TestPostgresRowsScanTypeTables
(t *testing.T)
tests/db_test.go:555
Function
TestShouldBeAbleToPingWithContext
(t *testing.T)
tests/db_test.go:652
Function
TestShouldCloseRootDB
(t *testing.T)
tests/db_test.go:401
Function
TestShouldDiscardConnectionWhenClosedBecauseOfError
(t *testing.T)
tests/db_test.go:511
Function
TestShouldFailInvalidPrepareStatement
(t *testing.T)
tests/db_test.go:346
Function
TestShouldGetMultiRowSet
(t *testing.T)
tests/db_test.go:609
Function
TestShouldHandlePrepare
(t *testing.T)
tests/db_test.go:361
Function
TestShouldHandleStmtsWithoutContextPollution
(t *testing.T)
tests/db_test.go:666
Function
TestShouldNotHoldConnectionForRows
(t *testing.T)
tests/db_test.go:280
Function
TestShouldPerformParallelActions
(t *testing.T)
tests/db_test.go:302
Function
TestShouldReopenAfterClose
(t *testing.T)
tests/db_test.go:466
Function
TestShouldRunWithHeavyWork
(t *testing.T)
tests/db_test.go:812
Function
TestShouldRunWithNestedTransaction
(t *testing.T)
tests/db_test.go:136
Function
TestShouldRunWithinTransaction
(t *testing.T)
tests/db_test.go:237
Function
TestShouldWorkWithOpenDB
(t *testing.T)
tests/db_test.go:121