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

Method Abs

internal/endtoend/testdata/builtins/postgresql/go/query.sql.go:16–21  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

14`
15
16func (q *Queries) Abs(ctx context.Context) (int64, error) {
17 row := q.db.QueryRowContext(ctx, abs)
18 var abs int64
19 err := row.Scan(&abs)
20 return abs, err
21}
22
23const cbrt = `-- name: Cbrt :one
24SELECT cbrt(27.0)

Callers 6

TestExamplesVetFunction · 0.80
TestExamplesFunction · 0.80
BenchmarkExamplesFunction · 0.80
TestReplayFunction · 0.80
BenchmarkReplayFunction · 0.80
getConfigPathFunction · 0.80

Calls 2

QueryRowContextMethod · 0.65
ScanMethod · 0.45

Tested by 5

TestExamplesVetFunction · 0.64
TestExamplesFunction · 0.64
BenchmarkExamplesFunction · 0.64
TestReplayFunction · 0.64
BenchmarkReplayFunction · 0.64