mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-08-29 23:28:18 +00:00
text[] from string_to_array can't match the CHAR(3) indexes and hides the values from the planner. Handlers already have a slice; stop joining to CSV in the store layer and pass a typed array everywhere.
25 lines
629 B
YAML
25 lines
629 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"
|
|
- db_type: "bpchar"
|
|
go_type: "string"
|