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