From b2333c846b287b38cd3ab5092adb1ec0c34eb6d6 Mon Sep 17 00:00:00 2001 From: bryanqiu Date: Thu, 27 Jun 2024 19:00:29 +0800 Subject: [PATCH] init 0.0.0 --- database.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 database.go diff --git a/database.go b/database.go new file mode 100644 index 0000000..ad381dd --- /dev/null +++ b/database.go @@ -0,0 +1,11 @@ +package database + +type Config struct { + Host string `toml:"host"` //数据库名称 + Port int `toml:"port"` //数据库名称 + Debug bool `toml:"debug"` //调试开关(会在日志打印SQL) + Dbname string `toml:"dbname"` //数据库名称 + Username string `toml:"username"` //数据库用户名 + Password string `toml:"password"` //数据库连接密码 + ExtraParameters string `toml:"extra_parameters"` //数据库连接扩展参数 +}