MCPcopy Create free account
hub / github.com/dataddo/pgq / Builder

Struct Builder

internal/query/query_builder.go:10–13  ·  view source on GitHub ↗

Builder is a helper for building SQL queries with named parameters (jmoiron/sqlx and psql style for the moment)

Source from the content-addressed store, hash-verified

8
9// Builder is a helper for building SQL queries with named parameters (jmoiron/sqlx and psql style for the moment)
10type Builder struct {
11 query strings.Builder
12 params []string
13}
14
15var (
16 tagRe = regexp.MustCompile(`:{1,2}(\w+)`)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected