Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
63
func
withReturnSQLDB(f
func
(*sql.DB)) Option {
64
return
func
(o *options) {
65
o.returnSQLDB = f
66
}
67
}
68
69
func
NewDBWithSQLDB(t testing.TB, opts ...Option) (database.Store, pubsub.Pubsub, *sql.DB) {
70
t.Helper()
Callers
1
NewDBWithSQLDB
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected