github.com/gogf/gf/v2@v2.7.4/frame/gins/testdata/database/config.toml (about)

     1  # 模板引擎目录
     2  viewpath = "/home/www/templates/"
     3  test = "v=2"
     4  # MySQL数据库配置
     5  [database]
     6      [[database.default]]
     7          host     = "127.0.0.1"
     8          port     = "3306"
     9          user     = "root"
    10          pass     = "12345678"
    11          name     = "test"
    12          type     = "default"
    13          role     = "master"
    14  		weight   = "1"
    15          charset  = "utf8"
    16      [[database.test]]
    17          host     = "127.0.0.1"
    18          port     = "3306"
    19          user     = "root"
    20          pass     = "12345678"
    21          name     = "test"
    22          type     = "default"
    23          role     = "master"
    24  		weight   = "1"
    25          charset  = "utf8"
    26  # Redis数据库配置
    27  [redis]
    28      [redis.default]
    29          address = "127.0.0.1:6379"
    30          db      = 1
    31      [redis.cache]
    32          address = "127.0.0.1:6379"
    33          db      = 1