Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fannheyward/coc-sql
SQL extension for coc.nvim
https://github.com/fannheyward/coc-sql
coc coc-nvim sql
Last synced: 12 days ago
JSON representation
SQL extension for coc.nvim
- Host: GitHub
- URL: https://github.com/fannheyward/coc-sql
- Owner: fannheyward
- License: mit
- Created: 2019-07-24T02:28:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T23:42:52.000Z (about 1 month ago)
- Last Synced: 2024-10-12T18:47:42.365Z (about 1 month ago)
- Topics: coc, coc-nvim, sql
- Language: TypeScript
- Homepage:
- Size: 1.1 MB
- Stars: 121
- Watchers: 4
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coc-sql
SQL extension for coc.nvim
## Features
- Format by [sql-formatter](https://github.com/zeroturnaround/sql-formatter)
- Lint by [node-sql-parser](https://github.com/taozhi8833998/node-sql-parser)## Install
`:CocInstall coc-sql`
## Commands
- `sql.Format` for current file
## Configuration
- `sql.lintOnOpen`: Lint sql file on opening, default `true`
- `sql.lintOnChange`: Lint sql file on change, default `true`
- `sql.lintOnSave`: Lint sql file on save, default `true`
- `sql.database`: Choose the database syntax flavor, default to `guess`, valid values: `db2`, `hive`, `mysql`, `mariadb`, `bigquery`, `postgresql`, `transactsql`
- `sql.formatOptions`: Format options passed to `sql-formatter`, checkout## Usage
### Format document
- `:call CocAction('format')`
- `:CocCommand sql.Format`### Format selected content
```vim
xmap f (coc-format-selected)
nmap f (coc-format-selected)
```## License
MIT