@@ -92,7 +92,13 @@ There are two ways to use configuration files.
9292 "user" : " postgres" ,
9393 "password" : " pg_pass" ,
9494 "database" : " pg_test" ,
95- "projectPaths" : [" /Users/joe-re/src/postgres_ptoject" ]
95+ "projectPaths" : [" /Users/joe-re/src/postgres_project" ]
96+ },
97+ {
98+ "name" : " sqlite3-project" ,
99+ "adapter" : " sqlite3" ,
100+ "filename" : " /Users/noguchimasato/src/sql-language-server/packages/server/test.sqlite3" ,
101+ "projectPaths" : [" /Users/joe-re/src/sqlite2_project" ]
96102 }
97103 ]
98104}
@@ -105,12 +111,13 @@ Please restart sql-language-server process after create .sqlrc.json.
105111| Key | Description | value | required | default |
106112| ------------ | ------------------------------------------------------------------------------------------------------------------------- | ----------------------- | -------- | --------------------------------- |
107113| name | Connection name(free-form text) | | true | |
108- | adapter | Database type | "mysql" #124 ; "postgres" | true | |
109- | host | Database host | string | true | |
114+ | adapter | Database type | "mysql" #124 ; "postgres" # 124 ; "sqlite3" | true | |
115+ | host | Database host | string | false | |
110116| port | Database port | string | false | mysql:3306, postgres:5432 |
111- | user | Database user | string | true | mysql:"root", postgres:"postgres" |
117+ | user | Database user | string | false | mysql:"root", postgres:"postgres" |
112118| password | Database password | string | false | |
113119| database | Database name | string | false | |
120+ | filename | Database filename(only for sqlite3) | string | false | |
114121| projectPaths | Project path that you want to apply(if you don't set it configuration will not apply automatically when lsp's started up) | string[ ] | false | [ ] |
115122| ssh | Settings for port fowarding | \* see below SSH section | false | |
116123
@@ -237,6 +244,17 @@ command: switchDataBaseConnection
237244arguments: string(project name)
238245```
239246
247+
248+ #### SQLite3 Notes
249+
250+ If you get error when you use sqlite3 connection, you may need to rebuild sqlite3 on your environment.
251+
252+ VSC extension provides the command to rebuild it.(Name: ` Rebuild SQLite3 Client ` )
253+ ![ image] ( https://user-images.githubusercontent.com/4954534/85928359-ef952180-b8de-11ea-8cb3-7a9a509cd6d7.png )
254+
255+ If you're using sql-language-server directly, after go to the directry of it and call ` npm rebuild sqlite ` to rebuild it.
256+
257+
240258#### Lint
241259
242260You can use lint rules that are provided [ sqlint] ( https://github.com/joe-re/sql-language-server/blob/master/packages/sqlint/README.md ) .
0 commit comments