MCPcopy Index your code
hub / github.com/riverqueue/river / DBPoolSQLite

Function DBPoolSQLite

rivershared/riversharedtest/riversharedtest.go:124–128  ·  view source on GitHub ↗

DBPoolSQLite gets a database pool appropriate for use with SQLite in testing.

(ctx context.Context, tb testing.TB, schema string)

Source from the content-addressed store, hash-verified

122
123// DBPoolSQLite gets a database pool appropriate for use with SQLite in testing.
124func DBPoolSQLite(ctx context.Context, tb testing.TB, schema string) *sql.DB {
125 tb.Helper()
126
127 return dbPoolSQLite(ctx, tb, schema, "sqlite")
128}
129
130func dbPoolSQLite(ctx context.Context, tb testing.TB, schema, driverName string) *sql.DB { //nolint:unparam
131 tb.Helper()

Calls 2

dbPoolSQLiteFunction · 0.85
HelperMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…