DigitalFactory/Admin.NET/Admin.NET.Application/Configuration/Database.json

77 lines
3.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
// 详细数据库配置见SqlSugar官网第一个为默认库
"DbConnection": {
"EnableConsoleSql": true, // 启用控制台打印SQL
"ConnectionConfigs": [
{
//"ConfigId": "1300000000001", // 默认库标识-禁止修改
"DbType": "MySql", // MySql、SqlServer、Sqlite、Oracle、PostgreSQL、Dm、Kdbndp、Oscar、MySqlConnector、Access、OpenGauss、QuestDB、HG、ClickHouse、GBase、Odbc、Custom
"ConnectionString": "Server=gz-cdb-76wyaumn.sql.tencentcdb.com;Port=29867;Database=guanwei-;Uid=guanwei-dig;Pwd=hfc123456;SslMode=none;AllowPublicKeyRetrieval=True;", // 库连接字符串
//"ConnectionString": "Server=139.199.191.197;Port=3306;Database=b-guanwei;Uid=b-guanwei;Pwd=hfc123456;SslMode=none;AllowPublicKeyRetrieval=True;", // 库连接字符串
//"SlaveConnectionConfigs": [ // 读写分离/主从
// {
// "HitRate": 10,
// "ConnectionString": "DataSource=./Admin.NET1.db"
// },
// {
// "HitRate": 10,
// "ConnectionString": "DataSource=./Admin.NET2.db"
// }
//],
"DbSettings": {
"EnableInitDb": true, // 启用库初始化
"EnableDiffLog": false, // 启用库表差异日志
"EnableUnderLine": false // 启用驼峰转下划线
},
"TableSettings": {
"EnableInitTable": true, // 启用表初始化
"EnableIncreTable": false // 启用表增量更新-特性[IncreTable]
},
"SeedSettings": {
"EnableInitSeed": true, // 启用种子初始化
"EnableIncreSeed": false // 启用种子增量更新-特性[IncreSeed]
}
}
//// 日志独立数据库配置
//{
// "ConfigId": "1300000000002", // 日志库标识-禁止修改
// "DbType": "Sqlite",
// "ConnectionString": "DataSource=./Admin.NET.Log.db", // 库连接字符串
// "DbSettings": {
// "EnableInitDb": true, // 启用库初始化
// "EnableDiffLog": false, // 启用库表差异日志
// "EnableUnderLine": false // 启用驼峰转下划线
// },
// "TableSettings": {
// "EnableInitTable": true, // 启用表初始化
// "EnableIncreTable": false // 启用表增量更新-特性[IncreTable]
// },
// "SeedSettings": {
// "EnableInitSeed": false, // 启用种子初始化
// "EnableIncreSeed": false // 启用种子增量更新-特性[IncreSeed]
// }
//},
//// 其他数据库配置(可以配置多个)
//{
// "ConfigId": "test", // 库标识
// "DbType": "Sqlite", // 库类型
// "ConnectionString": "DataSource=./Admin.NET.Test.db", // 库连接字符串
// "DbSettings": {
// "EnableInitDb": true, // 启用库初始化
// "EnableDiffLog": false, // 启用库表差异日志
// "EnableUnderLine": false // 启用驼峰转下划线
// },
// "TableSettings": {
// "EnableInitTable": true, // 启用表初始化
// "EnableIncreTable": false // 启用表增量更新-特性[IncreTable]
// },
// "SeedSettings": {
// "EnableInitSeed": true, // 启用种子初始化
// "EnableIncreSeed": false // 启用种子增量更新-特性[IncreSeed]
// }
//}
]
}
}