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

Function DBPoolLibSQL

rivershared/riversharedtest/riversharedtest.go:117–121  ·  view source on GitHub ↗

DBPoolLibSQL gets a database pool appropriate for use with libSQL (a SQLite fork) in testing.

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

Source from the content-addressed store, hash-verified

115// DBPoolLibSQL gets a database pool appropriate for use with libSQL (a SQLite
116// fork) in testing.
117func DBPoolLibSQL(ctx context.Context, tb testing.TB, schema string) *sql.DB {
118 tb.Helper()
119
120 return dbPoolSQLite(ctx, tb, schema, "libsql")
121}
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 {

Callers 2

Calls 2

dbPoolSQLiteFunction · 0.85
HelperMethod · 0.65

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…