mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 12:32:25 +00:00
默认readme修改为中文
This commit is contained in:
@@ -49,7 +49,6 @@ require (
|
||||
gopkg.in/yaml.v2 v2.3.0 // indirect
|
||||
gorm.io/driver/mysql v0.3.1
|
||||
gorm.io/driver/postgres v0.2.6
|
||||
gorm.io/driver/sqlite v1.1.1
|
||||
gorm.io/driver/sqlserver v0.2.4
|
||||
gorm.io/gorm v1.20.0
|
||||
)
|
||||
|
||||
@@ -56,7 +56,7 @@ func GormDBTables(db *gorm.DB) {
|
||||
}
|
||||
|
||||
// GormMysql 初始化Mysql数据库
|
||||
func GormMysql() {
|
||||
func GormMysql() {
|
||||
m := global.GVA_CONFIG.Mysql
|
||||
dsn := m.Username + ":" + m.Password + "@tcp(" + m.Path + ")/" + m.Dbname + "?" + m.Config
|
||||
mysqlConfig := mysql.Config{
|
||||
@@ -114,7 +114,7 @@ func GormPostgreSql() {
|
||||
// }
|
||||
//}
|
||||
|
||||
// GormSqlite 初始化Sqlite数据库
|
||||
// GormSqlServer 初始化SqlServer数据库
|
||||
func GormSqlServer() {
|
||||
ss := global.GVA_CONFIG.Sqlserver
|
||||
dsn := "sqlserver://" + ss.Username + ":" + ss.Password + "@" + ss.Path + "?database=gorm"
|
||||
|
||||
Reference in New Issue
Block a user