Base Project
This commit is contained in:
36
sqlc.yaml
Normal file
36
sqlc.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
version: "2"
|
||||
sql:
|
||||
- engine: "postgresql"
|
||||
queries: "./db/queries/"
|
||||
schema:
|
||||
- "./db/init/"
|
||||
- "./db/migrations/"
|
||||
gen:
|
||||
go:
|
||||
emit_interface: true
|
||||
emit_json_tags: true
|
||||
emit_db_tags: true
|
||||
emit_prepared_queries: false
|
||||
emit_empty_slices: false
|
||||
emit_result_struct_pointers: false
|
||||
emit_params_struct_pointers: false
|
||||
emit_methods_with_db_argument: false
|
||||
json_tags_case_style: "camel"
|
||||
output_db_file_name: db.go
|
||||
output_models_file_name: models.go
|
||||
output_querier_file_name: querier.go
|
||||
package: "db"
|
||||
out: "sqlc_gen"
|
||||
sql_package: "pgx/v5"
|
||||
overrides:
|
||||
- db_type: "uuid"
|
||||
go_type: "github.com/google/uuid.UUID"
|
||||
- db_type: "timestamptz"
|
||||
go_type: "time.Time"
|
||||
# - column: "orders.status"
|
||||
# go_type:
|
||||
# import: "warehouse-management/types"
|
||||
# type: "OrderStatus"
|
||||
# pointer: true
|
||||
# inflection_exclude_table_names:
|
||||
# - "status"
|
||||
Reference in New Issue
Block a user