feat(store): generate typed queries with sqlc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
018b24948e
commit
0af74267b9
6 files changed
+143
No files matched your search
@@ -0,0 +1,20 @@
|
||||
version: "2"
|
||||
sql:
|
||||
- engine: postgresql
|
||||
schema: internal/migrations/sql
|
||||
queries: internal/store/queries
|
||||
gen:
|
||||
go:
|
||||
package: store
|
||||
out: internal/store
|
||||
sql_package: pgx/v5
|
||||
emit_interface: true
|
||||
emit_empty_slices: true
|
||||
emit_pointers_for_null_types: true
|
||||
overrides:
|
||||
- db_type: uuid
|
||||
go_type: github.com/google/uuid.UUID
|
||||
- db_type: citext
|
||||
go_type: string
|
||||
- db_type: timestamptz
|
||||
go_type: time.Time
|
||||
Reference in new issue
Block a user