phorm 1.4.1
phorm: ^1.4.1 copied to clipboard
PHORM — a lightweight, type-safe, driver-agnostic ORM for Dart and Flutter.
Changelog #
1.4.1 #
WhereBuildernow compiles conditions structurally: the column is stored separately from the SQL template and escaped viaSqlDialect.escapeIdentifierdirectly, instead of regex word-boundary replacement over the generated SQL. Fixes potential mis-escaping when a column name coincided with a word inside the SQL template (e.g. a column namedLOWERorDATE), andSqlFunctionColumninner columns are now properly escaped.raw()conditions remain verbatim (no escaping), as before.- Internal condition storage is a sealed class hierarchy instead of
dynamic.
1.4.0 #
- BREAKING: automatic timestamps (
created_at,updated_at,deleted_at) are now written in UTC (DateTime.now().toUtc()) instead of local time. New records sort consistently across devices/timezones; rows written by earlier versions keep their local-time values.
1.3.0 #
- Bumped
phorm_annotationsdependency to^1.3.0, which adds the@ManyToMany(createPivot: ...)and@ManyToMany(pivotForeignKeys: ...)options (re-exported byphorm) for automatically generating the pivot (join) table of a many-to-many relationship.
1.2.0 #
- Bumped
phorm_annotationsdependency to^1.2.0, which adds the@Schema(generateFullService: ...)option (re-exported byphorm) and carries theMigrationBuilder.build()fix (previously droppedcolumns,timestamps, andautoIncrementwhen rebuilding a table via the fluent migration API).
1.1.0 #
- Bumped
phorm_annotationsdependency to^1.1.0(addsSqlDialectKindand the@Schema(dialect: ...)option). - Version bump to keep all PHORM packages in sync.
1.0.3 #
- Version bump to keep all PHORM packages in sync.
1.0.2 #
- Updated SDK environment constraint to >=3.7.0 <4.0.0
- Updated README with badges
1.0.1 #
- Changed license to MIT
- Changed logo
- Updated README
1.0.0 #
- First stable release of the PHORM Core.
- Driver-agnostic runtime query builder (
WhereBuilder,SortBuilder). - Generic CRUD service (
PhormCore<T extends Model>) with optionalDatabaseExecutorfor transaction support. - Seamless relational eager loading through Single-Query JSON Aggregation.
- Complete support for soft deletes (Paranoid mode) and automatic date timestamps.
- Native transaction wrapper and batch operation helpers (
insertBatch,updateBatch,deleteBatch, etc.).