Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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.

About

Quickstart for CQL

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages