Files
mantrae/sqlc.yml

62 lines
2.1 KiB
YAML

version: "2"
sql:
- engine: "sqlite"
schema: "internal/store/schemas"
queries: "internal/store/queries"
gen:
go:
package: "db"
out: "internal/store/db"
json_tags_case_style: "camel"
emit_json_tags: true # Adds JSON tags to generated structs
emit_interface: true # Output a Querier interface in the generated package
emit_prepared_queries: true
emit_pointers_for_null_types: true # Pointers for null types
emit_result_struct_pointers: true # Efficient for large result sets
emit_params_struct_pointers: true # Efficient parameter passing
overrides:
- column: "http_routers.config"
go_type:
type: "RouterConfig"
pointer: true
- column: "tcp_routers.config"
go_type:
type: "TCPRouterConfig"
pointer: true
- column: "udp_routers.config"
go_type:
type: "UDPRouterConfig"
pointer: true
- column: "http_services.config"
go_type:
type: "ServiceConfig"
pointer: true
- column: "tcp_services.config"
go_type:
type: "TCPServiceConfig"
pointer: true
- column: "udp_services.config"
go_type:
type: "UDPServiceConfig"
pointer: true
- column: "http_middlewares.config"
go_type:
type: "MiddlewareConfig"
pointer: true
- column: "tcp_middlewares.config"
go_type:
type: "TCPMiddlewareConfig"
pointer: true
- column: "http_servers_transports.config"
go_type:
type: "ServersTransportConfig"
pointer: true
- column: "tcp_servers_transports.config"
go_type:
type: "TCPServersTransportConfig"
pointer: true
- column: "dns_providers.config"
go_type:
type: "DNSProviderConfig"
pointer: true