config.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "db_clients": [
  3. {
  4. //name: Name of the client,'default' by default
  5. //"name":"",
  6. //rdbms: Server type, postgresql,mysql or sqlite3, "postgresql" by default
  7. "rdbms": "mysql",
  8. //filename: Sqlite3 db file name
  9. //"filename":"",
  10. //host: Server address,localhost by default
  11. "host": "127.0.0.1",
  12. //port: Server port, 5432 by default
  13. "port": 13306,
  14. //dbname: Database name
  15. "dbname": "InsServerDB",
  16. //user: 'postgres' by default
  17. "user": "root",
  18. //passwd: '' by default
  19. "passwd": "",
  20. //is_fast: false by default, if it is true, the client is faster but user can't call
  21. //any synchronous interface of it.
  22. "is_fast": false,
  23. //client_encoding: The character set used by the client. it is empty string by default which
  24. //means use the default character set.
  25. //"client_encoding": "",
  26. //number_of_connections: 1 by default, if the 'is_fast' is true, the number is the number of
  27. //connections per IO thread, otherwise it is the total number of all connections.
  28. "number_of_connections": 1,
  29. //timeout: -1.0 by default, in seconds, the timeout for executing a SQL query.
  30. //zero or negative value means no timeout.
  31. "timeout": -1.0,
  32. //"auto_batch": this feature is only available for the PostgreSQL driver(version >= 14.0), see
  33. // the wiki for more details.
  34. "auto_batch": false
  35. }
  36. ],
  37. "plugins": [
  38. {
  39. //name: The class name of the plugin
  40. "name": "httpHelper",
  41. //dependencies: Plugins that the plugin depends on. It can be commented out
  42. "dependencies": [],
  43. //config: The configuration of the plugin. This json object is the parameter to initialize the plugin.
  44. //It can be commented out
  45. "config": {
  46. }
  47. }]
  48. }