What problem does it solve?
Helps developers avoid writing error-prone raw SQL by providing a fluent, database-agnostic API to construct and execute selects, joins, aggregates, subqueries, and CRUD operations within ColdBox and BoxLang applications.
Core Features & Use Cases
- Fluent Query Construction: Chainable where/join/orderBy/groupBy/having APIs to build readable queries.
- Advanced Joins & Subqueries: Support for join closures, joinSub, and subqueries as columns or filters.
- Aggregates & Pagination: Built-in count, sum, avg, min, max, forPage, limit, and offset helpers.
- CRUD and Raw Expressions: Insert/update/delete support plus selectRaw/whereRaw/orderByRaw for custom SQL when needed.
- Use Case: Build a paginated report of active users with aggregated order totals using a subquery join and database-agnostic grammar settings.
Quick Start
Use the QB skill to build and run a parameterized query that returns active users ordered by last name with pagination.