https://github.com/sqls-server/sqls.vim
Vim plugin for sqls
https://github.com/sqls-server/sqls.vim
Last synced: 8 months ago
JSON representation
Vim plugin for sqls
- Host: GitHub
- URL: https://github.com/sqls-server/sqls.vim
- Owner: sqls-server
- License: mit
- Created: 2020-03-20T12:17:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-20T05:32:39.000Z (over 2 years ago)
- Last Synced: 2024-05-02T00:00:48.077Z (about 2 years ago)
- Language: Vim Script
- Size: 1.79 MB
- Stars: 39
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqls.vim
Vim plugin for [sqls](https://github.com/sqls-server/sqls)
## install
For vim-plug
```vim
Plug 'sqls-server/sqls.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
```
### depends
- [sqls](https://github.com/sqls-server/sqls)
- [vim-lsp](https://github.com/prabirshrestha/vim-lsp)
- [fzf](https://github.com/junegunn/fzf)
## Feature

| Commands | Plug Mappings | Description |
|-----------------------------------------------------|-------------------------------------|------------------------------------------------------------------------------|
| SqlsExecuteQuery | (sqls-execute-query) | execute query of the current buffer adn show query result to preview buffer. |
| SqlsExecuteQueryVertical | (sqls-execute-query-vertical) | ... display results vertically. |
| SqlsShowConnections | (sqls-show-connections) | show database connection to preview buffer. |
| SqlsShowDatabases | (sqls-show-databases) | show database to preview buffer. |
| SqlsSwitchDatabase | (sqls-switch-database) | select and swith database. Requirement fzf. |
| SqlsSwitchDatabase `` | - | swith database. |
| SqlsSwitchConnection | (sqls-switch-connection) | select and swith database connection. Requirement fzf. |
| SqlsSwitchConnection `` | - | swith database connection. |