https://github.com/razcoen/cqlc
cqlc is a tool designed to simplify working with Cassandra databases by generating type-safe code from CQL queries.
https://github.com/razcoen/cqlc
cassandra codegen codegeneration go
Last synced: about 1 month ago
JSON representation
cqlc is a tool designed to simplify working with Cassandra databases by generating type-safe code from CQL queries.
- Host: GitHub
- URL: https://github.com/razcoen/cqlc
- Owner: razcoen
- License: mit
- Created: 2024-12-21T08:33:28.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-15T21:12:43.000Z (about 1 year ago)
- Last Synced: 2025-10-03T19:34:32.153Z (6 months ago)
- Topics: cassandra, codegen, codegeneration, go
- Language: Go
- Homepage: https://razcoen.github.io/cqlc/
- Size: 484 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# cqlc

[](https://codecov.io/gh/razcoen/cqlc)
[](https://goreportcard.com/report/github.com/razcoen/cqlc)
---
[`cqlc`](https://github.com/razcoen/cqlc) is a tool designed to simplify working with Cassandra databases by generating type-safe code from CQL queries.
## Overview
- [Installation](https://razcoen.github.io/cqlc/usage/installation)
- [Getting started](https://razcoen.github.io/cqlc/usage/getting-started)
## Features
- **Type-Safe Code Generation:**
Automatically generates code from your CQL queries, ensuring compile-time type safety.
Currently only **Golang** is supported.
- **Supported CQL Commands:**
- [x] `SELECT`
- [x] `INSERT`
- [x] `DELETE`
- [x] `CREATE TABLE`
- [x] `ALTER TABLE`
- [x] `ADD COLUMN`
- [x] `DROP COLUMN`
- [ ] `ALTER TYPE`
- [x] `DROP TABLE`
- [ ] `CREATE TYPE`
- **Supported Query Annotations:**
When defining your CQL queries, you can use the following annotations to specify the expected behavior of each query:
- `:one` — Fetch a single row.
- `:many` — Fetch multiple rows.
- `:exec` — Execute a query without returning rows.
- `:batch` — Execute a batch of insert operations.