DataBase.json 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "Cache": {
  3. "CacheType": "MemoryCache", // RedisCache / MemoryCache
  4. "RedisConnectionString": "127.0.0.1:6379,password=,defaultDatabase=4",
  5. "InstanceName": ""
  6. },
  7. "DbConnection": {
  8. "EnableConsoleSql": true, //启用控制台打印SQL
  9. "ConnectionConfigs": [
  10. {
  11. "ConfigId": "0", //默认库标识-禁止修改
  12. "DbType": "MySql", //MySql、SqlServer、Sqlite、Oracle、PostgreSQL、Dm、Kdbndp、Oscar、MySqlConnector、Access、OpenGauss、QuestDB、HG、ClickHouse、GBase、Odbc、Custom
  13. //"ConnectionString": "Data Source=localhost;Port=3306;Initial Catalog=media;Persist Security Info=True;User ID=root;Password=123456;Pooling=True;charset=utf8mb4;MAX Pool Size=200;Min Pool Size=1;Connection Lifetime=30;AllowLoadLocalInfile=true;", // 库连接字符串
  14. "ConnectionString": "Data Source=localhost;Port=3307;Initial Catalog=media;Persist Security Info=True;User ID=root;Password=Wayne@123;Pooling=True;charset=utf8mb4;MAX Pool Size=200;Min Pool Size=1;Connection Lifetime=30;AllowLoadLocalInfile=true;", // 库连接字符串
  15. //"ConnectionString": "Data Source=./thesystem.db",
  16. "DbSettings": {
  17. "EnableDiffLog": true, //启用库表差异日志
  18. "EnableInitDb": false, //启用库初始化
  19. "EnableUnderLine": true //启用驼峰转下划线
  20. },
  21. "TableSettings": {
  22. "EnableInitTable": true, // 启用表初始化
  23. "EnableIncreTable": false, //启用表增量更新-特性[IncreTable]
  24. "EnableUnderLine": true // 启用驼峰转下划线
  25. },
  26. "SeedSettings": {
  27. "EnableInitSeed": true, // 启用种子初始化
  28. "EnableIncreSeed": false //启用种子增量更新-特性[IncreSeed]
  29. }
  30. }
  31. ]
  32. }
  33. }