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

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.

Awesome Lists containing this project

README

          

# cqlc

![GitHub CI](https://github.com/razcoen/cqlc/actions/workflows/go.yaml/badge.svg)
[![codecov](https://codecov.io/gh/razcoen/cqlc/graph/badge.svg?token=RCKM4XXK1I)](https://codecov.io/gh/razcoen/cqlc)
[![Go Report Card](https://goreportcard.com/badge/github.com/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.