Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 832 Bytes

README.md

File metadata and controls

44 lines (27 loc) · 832 Bytes

CQL Quickstart

In this quickstart you will see how to integrate cql within your project.

Generate conditions

First, you will need to generate the conditions for the models using cql-gen.

Install cql-gen:

go install github.com/FrancoLiberali/cql/cql-gen@latest

Generate conditions:

go generate ./...

For details visit cql-gen docs.

Run it

We can run the application:

go run .

It will create an SQLite database and you should see something like:

main.go:30
[info] Database connection is active

...

2023/08/16 10:36:28 You are ready to do queries with cql.Query[models.MyModel]

Go deeper

For more details, visit cql docs.