Files
History_Api/sqlc.yaml
AzenKain 5c363589d8
All checks were successful
Build and Release / release (push) Successful in 1m7s
UPDATE: Change type response
2026-04-16 12:39:05 +07:00

24 lines
668 B
YAML

version: "2"
sql:
- engine: "postgresql"
schema: "db/schema.sql"
queries: "db/query/"
gen:
go:
package: "sqlc"
out: "internal/gen/sqlc"
sql_package: "pgx/v5"
emit_json_tags: true
emit_prepared_queries: true
emit_interface: false
emit_exact_table_names: false
emit_empty_slices: true
overrides:
- column: "users_with_roles.roles"
go_type:
import: "history-api/models"
type: "[]Role"
- db_type: json
go_type: encoding/json.RawMessage
- db_type: jsonb
go_type: encoding/json.RawMessage