mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-12-26 01:52:30 +00:00
refactor: replace gorm with vanilla sql and sqlc
This commit is contained in:
18
sqlc.yml
Normal file
18
sqlc.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
version: "2"
|
||||
sql:
|
||||
- engine: "sqlite"
|
||||
queries: "query.sql"
|
||||
schema: "schema.sql"
|
||||
gen:
|
||||
go:
|
||||
package: "repository"
|
||||
out: "internal/repository"
|
||||
rename:
|
||||
uuid: "UUID"
|
||||
oauth_groups: "OAuthGroups"
|
||||
oauth_name: "OAuthName"
|
||||
overrides:
|
||||
- column: "sessions.oauth_groups"
|
||||
go_type: "string"
|
||||
- column: "sessions.oauth_name"
|
||||
go_type: "string"
|
||||
Reference in New Issue
Block a user