MCPcopy Index your code
hub / github.com/coder/coder / withReturnSQLDB

Function withReturnSQLDB

coderd/database/dbtestutil/db.go:63–67  ·  view source on GitHub ↗
(f func(*sql.DB))

Source from the content-addressed store, hash-verified

61}
62
63func withReturnSQLDB(f func(*sql.DB)) Option {
64 return func(o *options) {
65 o.returnSQLDB = f
66 }
67}
68
69func NewDBWithSQLDB(t testing.TB, opts ...Option) (database.Store, pubsub.Pubsub, *sql.DB) {
70 t.Helper()

Callers 1

NewDBWithSQLDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected