From eec9e5b4c248e12b268f3979ea8ac4afe8548cb9 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Sun, 18 May 2025 11:48:30 +0200 Subject: [PATCH] feat: sqlc configuration --- sqlc.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sqlc.yaml diff --git a/sqlc.yaml b/sqlc.yaml new file mode 100644 index 0000000..9e5d630 --- /dev/null +++ b/sqlc.yaml @@ -0,0 +1,21 @@ + +version: "2" +sql: + - engine: "postgresql" + schema: "./migrations" + queries: "./queries" + gen: + go: + package: "repository" + sql_package: "pgx/v5" + emit_json_tags: true + out: "internal/repository" + overrides: + - db_type: "uuid" + go_type: + import: "github.com/google/uuid" + type: "UUID" + - db_type: "timestamptz" + go_type: + import: "time" + type: "Time"