All projects

Dewey

Database-agnostic query utilities for Go

Visit github.com

Dewey is a lightweight Go library that provides composable utilities for filtering, sorting, and paginating REST API queries. It works with any ORM (Ent, GORM, sqlc, or raw SQL) without vendor lock-in.

  • Zero dependencies, no reflection
  • Offset/limit pagination with metadata helpers
  • Multi-field sorting with type-safe field mappings
  • Flexible filtering: structured filters, full-text search, custom predicates