https://github.com/golaxo/gormgoqrius
Implementation of GoQrius for GORM
https://github.com/golaxo/gormgoqrius
filter go golang gorm gorm-orm odata rest rest-api restful-api
Last synced: 2 months ago
JSON representation
Implementation of GoQrius for GORM
- Host: GitHub
- URL: https://github.com/golaxo/gormgoqrius
- Owner: golaxo
- License: mit
- Created: 2025-10-21T17:53:04.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-01T02:18:15.000Z (3 months ago)
- Last Synced: 2026-01-03T20:18:21.883Z (3 months ago)
- Topics: filter, go, golang, gorm, gorm-orm, odata, rest, rest-api, restful-api
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# GormGoQrius
[](https://img.shields.io/github/v/release/golaxo/gormgoqrius)
[](https://github.com/golaxo/gormgoqrius/actions/workflows/pr-checks.yml)
[](https://github.com/golaxo/gormgoqrius/actions/workflows/ci.yml)
[](https://goreportcard.com/report/github.com/golaxo/gormgoqrius)
> [!WARNING]
> GormGoQrius is under heavy development.
Implementation of [GoQrius][goqrius] for [GORM][gorm].
## ⬇️ Getting Started
To start using it:
```bash
go get github.com/golaxo/gormgoqrius@latest
```
GormGoQrius is using [GORM clauses](https://gorm.io/gen/clause.html) to leverage the SQL `WHERE` clause.
So it can be used as simple as:
```go
filter := "name eq 'John'"
e := goqrius.MustParse(filter)
whereClause := gormgoqrius.WhereClause(e)
var users []*User
db.Clauses(whereClause).Find(&users)
```
[goqrius]: https://github.com/golaxo/goqrius
[gorm]: https://gorm.io/