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

Method Log

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

Source from the content-addressed store, hash-verified

113`
114
115func (q *Queries) Log(ctx context.Context) (float64, error) {
116 row := q.db.QueryRowContext(ctx, log)
117 var log float64
118 err := row.Scan(&log)
119 return log, err
120}
121
122const logs = `-- name: Logs :one
123SELECT log(2.0, 64.0)

Callers 5

TestUpdateErrorsFunction · 0.80
TestUpdateFunction · 0.80
TestAuthorsFunction · 0.80
TestAuthorsFunction · 0.80
TestAuthorsFunction · 0.80

Calls 2

QueryRowContextMethod · 0.65
ScanMethod · 0.45

Tested by 5

TestUpdateErrorsFunction · 0.64
TestUpdateFunction · 0.64
TestAuthorsFunction · 0.64
TestAuthorsFunction · 0.64
TestAuthorsFunction · 0.64