{"repo":"scylladb/gocqlx","free":true,"listed":false,"github":"https://github.com/scylladb/gocqlx","clone":"git clone https://github.com/scylladb/gocqlx.git","description":"All-In-One: CQL query builder, ORM and migration tool","language":"Go","stars":1027,"topics":["golang","gocql","cql","orm","query-builder","migration","cassandra","scylla"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"🚀 GocqlX GocqlX makes working with Scylla easy and less error-prone. It’s inspired by Sqlx, a tool for working with SQL databases, but it goes beyond what Sqlx provides. Compatibility Versions of GocqlX prior to v3.0.0 are compatible with both Apache Cassandra’s gocql and ScyllaDB’s fork. However, starting with v3.0.0, GocqlX exclusively supports the scylladb/gocql driver. If you are using GocqlX v3.0.0 or newer, you must ensure your go.mod includes a replace directive to point to ScyllaDB’s fork: This is required because GocqlX relies on ScyllaDB-specific extensions and bug fixes introduced in the gocql fork. Attempting to use the standard gocql driver with GocqlX v3.0.0+ may lead to build or runtime issues. Features Binding query parameters from struct fields, map, or both Scanning query results into structs based on field names Convenient functions for common tasks such as loading a single row into a struct or all rows into a slice (list) of structs Making any struct a UDT without implementing marshalling functions GocqlX is fast. Its performance is comparable to raw driver. You can find some benchmarks here. Subpackages provide additional functionality: CQL query builder (package qb) CRUD operations based on table model (package table) Database migrations (package migrate) Installation GocqlX Add GocqlX to your Go module: Installation schemagen Unfortunately you can't install it via go install , since go.mod contains replace directive. So, you have to check it out and in","default_branch":null,"files":null,"tree":[],"storefront":"/r/scylladb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/scylladb/gocqlx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}