Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.03 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.03 KB

GormGoQrius

version PR checks CI

Warning

GormGoQrius is under heavy development.

Implementation of GoQrius for GORM.

⬇️ Getting Started

To start using it:

go get github.com/golaxo/gormgoqrius@latest

GormGoQrius is using GORM clauses to leverage the SQL WHERE clause. So it can be used as simple as:

filter := "name eq 'John'"
e := goqrius.MustParse(filter)
whereClause := gormgoqrius.WhereClause(e)

var users []*User
db.Clauses(whereClause).Find(&users)