2026-08-27 19:50:57 +08:00
|
|
|
package db
|
|
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
|
|
// DatabaseConf PostgreSQL 连接配置
|
|
|
|
|
type DatabaseConf struct {
|
|
|
|
|
Host string
|
|
|
|
|
Port int
|
|
|
|
|
User string
|
|
|
|
|
Password string
|
|
|
|
|
Dbname string
|
|
|
|
|
Debug bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func contextBackdrop() context.Context {
|
|
|
|
|
return context.Background()
|
|
|
|
|
}
|