-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
# Choose the dialect among ['postgres', 'mysql', 'sqlite'] | ||
DB_DRIVER = "mysql" | ||
|
||
# dsn should be in the form of user:password@tcp(host:port)/db?k=v | ||
DB_DSN = "rootomf:7LImSxF1HZ5oBS0WnE@tcp(localhost:3306)/grpc_todo?charset=utf8" | ||
# Choose the dialect among ['pgx', 'mysql', 'sqlite3'] | ||
DB_DRIVER = "<?>" | ||
|
||
# target database name you choose | ||
DB_NAME = "grpc_todo" | ||
# mysql => user:password@tcp(host:port)/db?k=v | ||
# pgx => user:password@host:port/db?k=v | ||
DB_DSN = "user:password@tcp(host:port)/test_db?charset=utf8" | ||
|
||
# target database name you choose , not needed for sqlite and pgx, only for mysql | ||
DB_NAME = "test_db" | ||
|
||
# target tables used for stmt generation | ||
TABLES = ["category", "group", "todo", "todo_detail", "todo_tag", "todosongroups"] | ||
TABLES = ["XXXX", "YYYY"] | ||
|
||
# Enable logger or not | ||
LOG_ENABLED = false | ||
|