Categorygithub.com/FrancoLiberali/cql-quickstart
repositorypackage
0.0.0-20240110225936-a3fa9e199578
Repository: https://github.com/francoliberali/cql-quickstart.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

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.