# scylladb/gocqlx

All-In-One: CQL query builder, ORM and migration tool

Repository: https://github.com/scylladb/gocqlx
Canonical: https://ross.abutalabs.com/products/gocqlx
Language: Go
License: Apache-2.0
License Family: permissive
Topics: golang, gocql, cql, orm, query-builder, migration, cassandra, scylla
Last push: 2026-08-30T17:46:56+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 35, longevity 100
- inputs: {"age_days": 3331, "days_push": 3, "days_rel": 354, "gap_med": 69, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1028, forks 131 (observed 2026-09-01T02:14:06.616920+00:00)

## What it is
GocqlX is a Go library for working with ScyllaDB and Cassandra that combines a CQL query builder, struct-based ORM-style mapping, and a database migration tool. It wraps the ScyllaDB gocql driver and offers fast, type-safe query parameter binding and result scanning.

## Use cases
- build CQL queries programmatically in Go
- map query results into Go structs
- run schema migrations for ScyllaDB or Cassandra
- perform CRUD operations from table models
- bind query parameters from structs or maps
- make Go structs act as Cassandra UDTs
- generate schema code with schemagen

## When to choose
- you use ScyllaDB or Cassandra from a Go application and want ORM-like ergonomics
- you need a query builder plus migrations in one package
- you want near-raw-driver performance with struct scanning

## When to avoid
- you use a relational SQL database rather than CQL
- you rely on the vanilla apache/cassandra-gocql driver, since v3+ requires the ScyllaDB fork
- you prefer writing raw CQL without struct mapping

## Facets
- artifact type: library
- maturity: active
- function: orm, database-driver, database, serialization, cli
- domain: databases, backend, developer-tools, web-development
- platform: go, windows, cli
- tags: cql, cassandra, scylladb, query-builder, schema-migrations, udt-mapping, sqlx-inspired, linux, macos

## Member repositories
- scylladb/gocqlx (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:06.616920+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:07:54.837965+00:00, confidence not recorded.
  - readme: https://github.com/scylladb/gocqlx (fetched 2026-09-01T02:14:06.616920+00:00, sha 68ed15aa2249)
- Data as of 2026-08-30T08:39:29.467469+00:00.
