sql-language-server.schema.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {
  2. "title": "SQL configuration",
  3. "type": "object",
  4. "properties": {
  5. "personalConfig.connections": {
  6. "type": "array",
  7. "default": [
  8. {
  9. "name": "default sqlite3 connection",
  10. "adapter": "sqlite3",
  11. "filename": ":memory:",
  12. "projectPaths": ["."]
  13. }
  14. ],
  15. "items": {
  16. "type": "object",
  17. "required": ["name", "adapter"],
  18. "properties": {
  19. "name": {
  20. "description": "Connection name (free-form text)",
  21. "type": "string"
  22. },
  23. "adapter": {
  24. "description": "Database type",
  25. "type": "string",
  26. "enum": [
  27. "json",
  28. "mysql",
  29. "postgresql",
  30. "postgres",
  31. "sqlite3",
  32. "bigquery"
  33. ]
  34. },
  35. "host": {
  36. "description": "Database host",
  37. "type": "string"
  38. },
  39. "port": {
  40. "description": "Database port",
  41. "type": "number"
  42. },
  43. "user": {
  44. "description": "Database user",
  45. "type": "string"
  46. },
  47. "database": {
  48. "description": "Database name",
  49. "type": "string"
  50. },
  51. "password": {
  52. "description": "Database password",
  53. "type": "string"
  54. },
  55. "filename": {
  56. "description": "Database filename - only for sqlite3 (required); use ':memory:' for in-memory database",
  57. "type": "string"
  58. },
  59. "projectPaths": {
  60. "description": "Project path that you want to apply (if you don't set it configuration will not apply automatically when lsp's started up)",
  61. "type": "array",
  62. "items": { "type": "string" }
  63. },
  64. "ssh": {
  65. "oneOf": [
  66. {
  67. "title": "Disabled",
  68. "type": "null",
  69. "additionalProperties": false
  70. },
  71. {
  72. "title": "Enabled",
  73. "type": "object",
  74. "properties": {
  75. "remoteHost": {
  76. "description": "The host address you want to connect to",
  77. "type": "string",
  78. "default": "",
  79. "title": "Remote host"
  80. },
  81. "remotePort": {
  82. "description": "Port number of the server for ssh",
  83. "type": "integer",
  84. "default": 22,
  85. "title": "Remote port"
  86. },
  87. "user": {
  88. "description": "User name on the server",
  89. "type": "string",
  90. "default": "",
  91. "title": "User"
  92. },
  93. "dbHost": {
  94. "description": "Database host on the server",
  95. "type": "string",
  96. "default": "127.0.0.1",
  97. "title": "Database host"
  98. },
  99. "dbPort": {
  100. "description": "Databse port on the server, default 3306 for mysql and 5432 for postgres",
  101. "type": "number",
  102. "title": "Database port"
  103. },
  104. "identityFile": {
  105. "description": "Identity file for ssh",
  106. "type": "string",
  107. "default": "~/.ssh/config/id_rsa",
  108. "title": "Identity file"
  109. },
  110. "passphrase": {
  111. "description": "Passphrase to allow to use identity file",
  112. "type": "string",
  113. "title": "Passphrase"
  114. }
  115. }
  116. }
  117. ],
  118. "default": null,
  119. "title": "Settings for port fowarding"
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }