summaryrefslogtreecommitdiff
path: root/sqlc.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sqlc.yaml22
1 files changed, 6 insertions, 16 deletions
diff --git a/sqlc.yaml b/sqlc.yaml
index 2ada86d..df11e1b 100644
--- a/sqlc.yaml
+++ b/sqlc.yaml
@@ -1,17 +1,5 @@
version: "2"
sql:
- - engine: "sqlite"
- queries: "sql/*.sql"
- schema: "sql/ddl/sqlite.sql"
- gen:
- go:
- out: "model"
- emit_sql_as_comment: true
- build_tags: "sqlite"
- output_db_file_name: "db_sqlite.go"
- output_models_file_name: "models_sqlite.go"
- output_files_suffix: ".sqlite"
-
- engine: "mysql"
queries: "sql/*.sql"
schema: "sql/ddl/mysql.sql"
@@ -19,7 +7,9 @@ sql:
go:
out: "model"
emit_sql_as_comment: true
- build_tags: "!sqlite"
- output_db_file_name: "db_mysql.go"
- output_models_file_name: "models_mysql.go"
- output_files_suffix: ".mysql" \ No newline at end of file
+ overrides:
+ - db_type: "year"
+ go_type: "uint16"
+ - db_type: "tinyint"
+ unsigned: true
+ go_type: "uint8" \ No newline at end of file