MCPcopy
hub / github.com/daptin/daptin / Preparex

Method Preparex

server/inmemory_mock_db.go:177–185  ·  view source on GitHub ↗
(query string)

Source from the content-addressed store, hash-verified

175}
176
177func (imtd *InMemoryTestDatabase) Preparex(query string) (*sqlx.Stmt, error) {
178 if imtd.queries == nil {
179 imtd.queries = make([]string, 0)
180 }
181
182 imtd.queries = append(imtd.queries, query)
183 return imtd.db.Preparex(query)
184
185}
186
187func (imtd *InMemoryTestDatabase) QueryRow(query string, args ...interface{}) *sql.Row {
188 if imtd.queries == nil {

Callers

nothing calls this directly

Calls 2

makeFunction · 0.85
PreparexMethod · 0.65

Tested by

no test coverage detected