Repository navigation
Highlights
Jazzy v0.5.0 introduces a complete await-first database workflow for SQLite and PostgreSQL.
- PostgreSQL support through
DB_CONNECTION=postgresandDATABASE_URL - Versioned, transactional migrations with
jazzy make:migrationandjazzy migrate - Typed ORM with fluent awaited CRUD
- CLI generators for models and CRUD controllers
- Safer schema migrations and portable query-builder improvements
Database
- Async PostgreSQL connection pools for Mummy workers
- Same
DB.table(...)API on SQLite and PostgreSQL - Portable raw SQL placeholders: write
?, Jazzy converts them for PostgreSQL - Type-aware PostgreSQL parameters for IDs, UUIDs, booleans, JSONB, and timestamps
- Identifier quoting,
returning(...), affected-row results, NULL/IN conditions, soft deletes, and schema changes
Migrations and CLI
jazzy make:migration,jazzy migrate,migrate:status,migrate:rollback,migrate:reset, andmigrate:fresh- Transactional migration history on SQLite and PostgreSQL
jazzy make:modeljazzy make:controllerjazzy make:seederandjazzy db:seedjazzy upgrade db-asyncto help existing projects adopt awaited database calls
Typed ORM
- Single-block
modeldeclarations find,findOrFail,all,where,orderBy,get,first,count, and paginationcreate,update,patch,save,delete, anddestroy- Nullable fields, mapped columns, custom primary keys, enums, and DateTime values
hasOne,hasMany,belongsTo, and many-to-many relations- Nested eager loading, scopes, factories, dirty tracking, and lifecycle hooks
Security and authentication
- Refresh-token support
- Automatic CSRF support for browser sessions
- Hardened production authentication defaults
Upgrade notes
Database operations are now await-first:
let users = await DB.table("users").get()Existing projects can preview or apply safe conversions:
jazzy upgrade db-async
jazzy upgrade db-async --applyMySQL/MariaDB support is planned, but not part of v0.5.0.