Files
beacon-server/sqlc.yaml
T
Enot (ded) Skelly dfef16435c feat(db): change to sqlc Querier in Store
this generates an interface for our sqlc methods and
changes the db Store to hold that instead in preparation
for mocking and integration tests
2026-06-15 11:13:39 -07:00

23 lines
569 B
YAML

# Copyright 2026 Beacon Contributors
# SPDX-License-Identifier: agpl
version: "2"
sql:
- engine: "postgresql"
queries: "db/queries"
schema: "db/migrations"
gen:
go:
package: "db"
sql_package: "pgx/v5"
out: "db/sqlc"
emit_json_tags: true
emit_pointers_for_null_types: true
emit_empty_slices: true
emit_interface: true
overrides:
- db_type: "uuid"
go_type: "github.com/google/uuid.UUID"
- db_type: "jsonb"
go_type: "encoding/json.RawMessage"