[hw-8] add: repo layer

This commit is contained in:
3ybactuk
2025-07-25 23:04:31 +03:00
committed by 3ybacTuK
parent c1e8934646
commit 6420eaf3d7
25 changed files with 4194 additions and 6 deletions

15
comments/sqlc.yaml Normal file
View File

@@ -0,0 +1,15 @@
version: "2"
sql:
- engine: "postgresql"
queries: "infra/repository/sqlc/query.sql"
schema: "db/migrations"
gen:
go:
package: "sqlc"
out: "infra/repository/sqlc"
sql_package: "pgx/v5"
emit_interface: true
emit_pointers_for_null_types: true
emit_result_struct_pointers: true
emit_params_struct_pointers: true
omit_unused_structs: true