cqlls 1.0.1

CQL (Cassandra Query Language) LSP
Documentation

cqlls

Crates.io Support me on Patreon

[!TIP] OpenSource grammar, highlights and general IDE integration

The 1nonly Open Source language server for CQL (Cassandra Query Language) _

https://github.com/user-attachments/assets/780f9005-d571-489d-93e3-e61f91dcb0fe

[!TIP] CQL is now supported by GitHub | github-linguist v9.4.0 Example using cql instad of sql

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 = {
   'sstable_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'
};

cqlls vs Corpo

  • Free
  • Open Source language server (under MIT License)
  • Aiming to provide the best experience
  • Seamless Integration with Zed && Nvim
  • Written in Rust :D

Installation

Install Language Server binary using cargo

cargo install cql_lsp

Add env variables to your shell config

# Adds cql_lsp to your path
export PATH="$HOME/.cargo/bin:$PATH"

# Env variables used by the language server

# Db related
export CQL_LSP_DB_URL="172.17.0.2"
export CQL_LSP_DB_PASSWD="cassandra"
export CQL_LSP_DB_USER="cassandra"
export CQL_LSP_TLS_MODE="none|tls"
export CQL_LSP_TLS_CA_CERT_FILE=""

# Logging and debugging
export CQL_LSP_ENABLE_LOGGING="false"

# Formatting related settings
export CQL_LSP_TYPE_ALIGNMENT_OFFSET="7"

License

This project is licensed under the MIT License.