DataBase.json 1.5 KB

1234567891011121314151617181920212223242526272829303132
  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=thesystem;Persist Security Info=True;User ID=root;Password=HS1205;Pooling=True;charset=utf8mb4;MAX Pool Size=200;Min Pool Size=1;Connection Lifetime=30;AllowLoadLocalInfile=true;", // 库连接字符串
  14. //"ConnectionString": "Data Source=./thesystem.db",
  15. "DbSettings": {
  16. "EnableDiffLog": true, //启用库表差异日志
  17. "EnableInitDb": false, //启用库初始化
  18. "EnableUnderLine": true //启用驼峰转下划线
  19. },
  20. "TableSettings": {
  21. "EnableInitTable": true, // 启用表初始化
  22. "EnableIncreTable": false, //启用表增量更新-特性[IncreTable]
  23. "EnableUnderLine": true // 启用驼峰转下划线
  24. },
  25. "SeedSettings": {
  26. "EnableInitSeed": true, // 启用种子初始化
  27. "EnableIncreSeed": false //启用种子增量更新-特性[IncreSeed]
  28. }
  29. }
  30. ]
  31. }
  32. }