Changes for version 0.000034 - 2026-12-02
- DBIx::QuickORM->load_class() is now load_class() in DBIx::QuickORM::Util, exported on request, beside croak_at(), rethrow_at(), is_marker(), and is_sql().
- New Boolean type, on by default, reads boolean and MySQL or MariaDB tinyint(1) fields as JSON::PP::true or false, and takes 'true', \1, and the like. Boolean::Strict skips tinyint(1).
- Types can deflate where() values with deflate_in_queries(). UUID and DateTime do, so a UUID string matches a binary(16) column and a DateTime needs no inflated().
- data_only() and data => 1 return shallow copies of cached row data you may change. Pass canonical => 1 for the row cache's own hash, which writes need.
- MySQL JSON values, from a column or a JSON function, come back as characters instead of UTF-8 bytes, so raw_field(), untyped fields, and row data all get text.
- The manual page DBIx::QuickORM::Manual::Classes is now DBIx::QuickORM::Manual::OrmClasses, and row blocks are shown in DBIx::QuickORM::Manual::RowClasses.
- A DSL error keeps its own location and gains a "(from column() at FILE line N)" line for each enclosing keyword, such as column, table, orm, and schema.
- temp_table() and temp_view() take their definition (a block, \%columns, a handle, or SQL) first or last, as in temp_table(name => 'scores', sub { ... }).
- String errors from temp_table() and temp_view() keep their own location and add the caller's line.
- temp_table() takes a hashref of column names to their options, so a temporary table needs no DSL, as in temp_table({ id => { db_type => 'integer', primary_key => 1 } }).
- txn() takes its block first or last, so $orm->txn(retry => 3, sub { ... }) reads in the order a person writes it.
- New Debug method with_caller(\@frame, sub { ... }) runs code with the debug caller frame set, which is safer than localizing the frame by hand.
- new() and build_schema() take a dialect argument, a class or object that replaces the driver's dialect.
- build_sql(), offline(), enum_sql(), and db_map_from_schema() take a dialect class or object as well as a name.
- The Dialect base class croaks when a dialect lacks a method it must provide, and names the method.
- Rows keep their table's map record (qorm_table_record()), so rows of a dropped or reused temporary table can still read their fields.
- $map->table() now returns a Map::Table object, and $map->table_ref() returns the record.
- New DBIx::QuickORM::Manual::RowData covers the plain hashref behind every row, what its missing keys and undef values mean, and passing it in place of a row.
- Rewrite every module's documentation code first, with examples on one shared schema. The main module's QUICKSTART replaces DBIx::QuickORM::Manual::Quickstart.
- The orm block may define enums for its class with enum NAME => [...].
- Tables are declared as table 'NAME', table NAME => sub { ... }, or table NAME => schema { ... }, and views the same way.
- The table { name ... } block form, the name keyword, the :schema tag, and top-level schema blocks are gone.
- An orm block may declare its tables and views itself, so a whole schema fits in one module, mixed freely with table classes. :orm imports the table, view, and schema keywords for it.
- The orm block's schema block takes schema_header and schema_footer for SQL before and after the tables, replacing schema_sql there and its after => 1 option.
- Raw SQL given to schema building (schema_sql, view_sql, schema_header, schema_footer) may end in whitespace, such as a heredoc's newline.
- On MySQL and MariaDB, schema building gives a CURRENT_TIMESTAMP or NOW() default its datetime column's precision, which MySQL 8 and later require.
Modules
An ORM that quickly gives you what you need with minimal boilerplate, and easily extends to more complex use cases.
A computed row that knows its fields' types and foreign keys.
The qorm-generate-sql command: print an ORM class's schema as SQL.
One database handle and the state tied to it.
The stand-in connection of an offline ORM.
Define an ORM, its tables and views, and its row classes in code.
What the ORM records with debug => 1.
Base class for the per-database dialects.
DuckDB dialect.
MariaDB dialect.
MySQL dialect, and base for MariaDB.
PostgreSQL dialect.
SQLite dialect.
A classified database error.
Build a query, then read, update, or delete its rows.
Iteration over the rows a query fetched.
One row of a join: its component rows and raw data.
Base class for the lookup tables.
The canonical row hash for each table and primary key, cached.
Guard transaction boundaries, with no row cache.
No row cache and no canonical checks.
The DBIx::QuickORM manual.
Group, count, and compute fields, by example.
Queries that run while your code goes on: async, aside, and forked.
Inserting many rows at once, by example.
The ORM's one canonical copy of each row, by example.
Coming from DBIx::Class: the concepts mapped, and the same tasks side by side.
What differs between PostgreSQL, MySQL, MariaDB, SQLite, and DuckDB.
The schema the documentation's examples use.
The larger schema some documentation examples use.
Catching and retrying database errors, by example.
Following and inserting through foreign keys, by example.
Joining tables with a handle, by example.
Primary keys: the forms they take, typed keys, and keys for keyless tables and views.
What is fast, what is slow, and the faster alternatives, with numbers.
An ORM defined in Perl packages, by example.
Row classes for one table, every table, or one query, and plain hashrefs.
The plain hashref behind every row.
Change or add to what the database scan finds.
Write the database's tables in code, and create them or get their SQL, by example.
Temporary tables and views, and the views the scan finds, by example.
Transactions, savepoints, isolation, retries, and the rows you hold.
Writing a type: inflate, deflate, caching, keys, and registering it.
How values move between Perl and the database: deflation, inflation, and the raw, inflated, binary, and sql markers.
The database map: tables, fields, and keys.
One table of the database map.
Base class for an ORM defined as classes.
Turn table definitions into the SQL that creates them.
Namespace for the DBIx::QuickORM roles.
What a connection needs from a lookup table.
The methods of a row object.
The role an SQL builder composes.
What a handle reads from.
The interface for field types.
The role a where builder composes.
The default row class.
Whether a row hash is deleted or not yet inserted.
The default SQL builder.
What schema building creates around the tables.
Describe a table: its columns, indexes, and keys.
Describe a temporary table, then build it.
A view's description for schema building.
Tables joined together, as a source.
A query as a source.
A table as a source.
A temporary table or view the ORM created.
A transaction or savepoint.
Booleans read as JSON::PP::true and JSON::PP::false.
The Boolean type, for boolean columns only.
Date and timestamp fields as DateTime objects.
A DateTime built on first use.
Perl data structures stored as JSON text.
UUIDs stored as text or as 16 bytes.
Functions the distribution's modules share.
Mark how one value is sent to the database.
A where that is SQL already.
Any where, through SQL::Abstract.
Fast equality conditions.
Provides
in lib/DBIx/QuickORM/Connection/Offline.pm