feat: Database type support

This commit is contained in:
zhangwenjian committed 2020-07-03 00:34:54 +08:00
1 parent ab34ba8aad
commit a6970e9c67
20 files changed
+190 -301

No files matched your search

+6 -5
View File
@@ -18,9 +18,10 @@ settings:
secret: go-admin
timeout: 3600
database:
name: goadmindb
dbtype: mysql
host: 127.0.0.1
password: 123456
port: 3306
username: root
sqlite:
masterconn: ./sqlite3.db
mysql:
masterconn: user:password@/tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local
pgsql:
masterconn: host=myhost port=myport user=gorm dbname=gorm password=mypassword