https://github.com/akzestia/zed-cql
CQL support for Zed
https://github.com/akzestia/zed-cql
cql cql-support extension language-server ls zed zed-extension
Last synced: 5 months ago
JSON representation
CQL support for Zed
- Host: GitHub
- URL: https://github.com/akzestia/zed-cql
- Owner: Akzestia
- License: mit
- Created: 2025-04-09T22:09:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-19T11:18:07.000Z (5 months ago)
- Last Synced: 2026-01-19T18:17:38.836Z (5 months ago)
- Topics: cql, cql-support, extension, language-server, ls, zed, zed-extension
- Language: Tree-sitter Query
- Homepage: https://zed.dev/extensions?query=CQL
- Size: 136 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# CQL support for [Zed](https://zed.dev)
> [!TIP]
> Now also available in [NeoVim](https://github.com/Akzestia/nvim-cql-v2.git)
> [!TIP]
> CQL is now supported by GitHub | [github-linguist v9.4.0](https://github.com/github-linguist/linguist/releases/tag/v9.4.0)
> Example using `cql` instad of `sql`
> ```cql
> ALTER MATERIALIZED VIEW cycling.cyclist_by_age
> ALTER MATERIALIZED VIEW cycling.cyclist_by_age
> WITH comment = 'A most excellent and useful view'
> AND bloom_filter_fp_chance = 0.02;
>
> ALTER MATERIALIZED VIEW cycling.cyclist_by_age
> WITH compression = {
> 'stable_compression' : 'DeflateCompressor',
> 'chunk_length_kb' : 64
> }
> AND compaction = {
> 'class' : 'SizeTieredCompactionStrategy',
> 'max_threshold' : 64
> };
>
> ALTER MATERIALIZED VIEW cycling.cyclist_by_age
> WITH caching = {
> 'keys' : 'NONE',
> 'rows_per_partition' : '15'
> };
> ```
https://github.com/user-attachments/assets/780f9005-d571-489d-93e3-e61f91dcb0fe
>[!TIP]
> Read [Setup Process](/docs/README.md)
> Based on [DataStax HCD](https://docs.datastax.com/en/cql/hcd/reference/cql-reference-about.html)
>[!IMPORTANT]
> Want more frequent updates? Support the project on Patreon - it helps me ship features faster and keep the lights on. ^_^
>
>[](https://patreon.com/akzestia)
>[!IMPORTANT]
> For bug reports, feature requests please open issue on the language server [repository](https://github.com/Akzestia/cql-lsp/issues)
>
## List of Supported OS
- Linux
- Mac
- Windows
## Features
- Full CQL 3.4+ support
- Syntax highlighting
- Outline support
- Code completion
- CQL commands completion
- Code formatting
- Smart completions based on Database context
- Realtime sync with the Database (No need to manually refresh)
- Query execution directly from Zed
- Realtime query preview
## CQL in Zed vs Corpo
- Free
- Open Source grammar and language server (under MIT License)
- Aiming to provide the best experience
- Seamless Integration with Zed
- Written in Rust :D
## Tools used by extension
- [Tree-Sitter grammar](https://github.com/Akzestia/tree-sitter-cql)
- [Language Server](https://github.com/Akzestia/cqlls)
- [Preview Tool](https://github.com/Akzestia/wq)
## License
This project is licensed under the [MIT License](LICENSE).