In this quickstart you will see how to integrate cql within your project.
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.
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]
For more details, visit cql docs.