mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-10-16 07:19:58 +00:00
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
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"
|
|
- db_type: "bpchar"
|
|
go_type: "string"
|
|
|
|
# Coalesced archive labels can still be NULL; preserve the API pointers.
|
|
- column: "mv_top_observers_by_iata.display_name"
|
|
go_type: {type: "string", pointer: true}
|
|
- column: "mv_top_observers_by_iata.observer_type"
|
|
go_type: {type: "string", pointer: true}
|
|
- column: "mv_top_advertisers_by_iata.name"
|
|
go_type: {type: "string", pointer: true}
|