owpengram-server/sqlc.yaml
2026-06-04 01:37:39 +08:00

13 lines
488 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: "2"
sql:
- engine: "postgresql"
# schema 只取 *.up.sql避免 golang-migrate 的 down 脚本DROP被 sqlc 当成 schema 的一部分。
# 与 golang-migrate 共用同一份迁移文件,单一事实源。
schema: "deploy/migrations/*.up.sql"
queries: "internal/store/postgres/queries"
gen:
go:
package: "sqlcgen"
out: "internal/store/postgres/sqlcgen"
sql_package: "pgx/v5"
emit_pointers_for_null_types: true