MCPcopy
hub / github.com/sqlc-dev/sqlc / New

Function New

examples/ondeck/sqlite/db.go:20–22  ·  view source on GitHub ↗
(db DBTX)

Source from the content-addressed store, hash-verified

18}
19
20func New(db DBTX) *Queries {
21 return &Queries{db: db}
22}
23
24func Prepare(ctx context.Context, db DBTX) (*Queries, error) {
25 q := Queries{db: db}

Callers 1

TestQueriesFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestQueriesFunction · 0.56