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

Method SayHello

examples/booktest/postgresql/query.sql.go:213–218  ·  view source on GitHub ↗
(ctx context.Context, s string)

Source from the content-addressed store, hash-verified

211`
212
213func (q *Queries) SayHello(ctx context.Context, s string) (pgtype.Text, error) {
214 row := q.db.QueryRow(ctx, sayHello, s)
215 var say_hello pgtype.Text
216 err := row.Scan(&say_hello)
217 return say_hello, err
218}
219
220const updateBook = `-- name: UpdateBook :exec
221UPDATE books

Callers 1

TestBooksFunction · 0.80

Calls 2

QueryRowMethod · 0.65
ScanMethod · 0.45

Tested by 1

TestBooksFunction · 0.64