Skip to content

FrancoLiberali/cql-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages