documentation formatting: Wed Jul 1 19:13:36 UTC 2020
This commit is contained in:
parent
0f7693c4d5
commit
89b265e779
|
@ -58,16 +58,14 @@ Some functionality, like linting, rely on external binaries:
|
|||
#+BEGIN_SRC ruby
|
||||
gem install sqlint
|
||||
#+END_SRC
|
||||
|
||||
- *Formatting*: Install [[https://github.com/mjibson/sqlfmt][sqlfmt]] and move it into your =$PATH=
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
# Download and extract the binary 0.4.0 for linux
|
||||
wget -q -O - https://github.com/mjibson/sqlfmt/releases/latest/download/sqlfmt_0.4.0_linux_amd64.tar.gz | tar -xpvzf - --directory "${installdir}/bin"
|
||||
#+END_SRC
|
||||
|
||||
- *LSP supporting (sqls)*:
|
||||
- Install [[https://golang.org/dl/][Go]]lang and [[https://github.com/lighttiger2505/sqls][sqls]], then setting the variable =sql-backend= to ='lsp=.
|
||||
- Install [[https://golang.org/dl/][Go]] lang and [[https://github.com/lighttiger2505/sqls][sqls]], then setting the variable =sql-backend= to ='lsp=.
|
||||
- One of way to connect DB is setting variable =sql-lsp-sqls-workspace-config-path= to ='workspace= or ='root= and put json file at these directory.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
@ -78,16 +76,16 @@ Some functionality, like linting, rely on external binaries:
|
|||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC json
|
||||
{
|
||||
"sqls": {
|
||||
"connections": [
|
||||
{
|
||||
"driver": "mysql",
|
||||
"dataSourceName": "user1:password1@tcp(localhost:3306)/sample_db"
|
||||
}
|
||||
]
|
||||
{
|
||||
"sqls": {
|
||||
"connections": [
|
||||
{
|
||||
"driver": "mysql",
|
||||
"dataSourceName": "user1:password1@tcp(localhost:3306)/sample_db"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** SQL Keywords Capitalization
|
||||
|
|
|
@ -91,6 +91,7 @@ that users can still overwrite these configs it is important
|
|||
to declare them uniformly in Spacemacs.
|
||||
|
||||
To do so copy and adjust the following code:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; This will only be called if `window-purpose` is listed
|
||||
;; among the layer packages.
|
||||
|
@ -118,6 +119,7 @@ these allocations to match ones own personal needs.
|
|||
|
||||
This can easily be achieved by adding below code in
|
||||
`dotspacemacs/user-config`:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; This will add user allocations with a higher
|
||||
;; priority than the ones from the layers.
|
||||
|
|
|
@ -1233,6 +1233,7 @@ Features:
|
|||
- Snippet insertion for the more general SQL constructs.
|
||||
- REPL support via =SQLi= buffer.
|
||||
- Automatic capitalization of keywords.
|
||||
- LSP support via [[https://github.com/lighttiger2505/sqls][sqls]].
|
||||
|
||||
*** Lisp dialects
|
||||
**** Clojure
|
||||
|
|
Loading…
Reference in New Issue