feat(lyra): 接入 PostgreSQL 与 Goose 迁移
- 使用 pgx/sqlx 建立连接,从环境变量读取数据库密码 - 添加本地 PostgreSQL Compose 配置与初始迁移 - 补充 Goose 操作手册和连接串排错说明
This commit is contained in:
@@ -5,3 +5,14 @@ env = "debug" #gin支持 release | test | debug 3种mode,如果需要自定义
|
||||
[http]
|
||||
host = "0.0.0.0"
|
||||
port = 7777
|
||||
|
||||
[database]
|
||||
driver = "pgx"
|
||||
host = "localhost"
|
||||
port = 5432
|
||||
user = "admin"
|
||||
name = "lab"
|
||||
|
||||
[redis]
|
||||
host = "localhost"
|
||||
port = 6379
|
||||
Reference in New Issue
Block a user