An open API service indexing awesome lists of open source software.

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

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

![sqls.vim demo](./imgs/sqls_vim_demo.gif)

| 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. |