phorm_annotations 1.1.0
phorm_annotations: ^1.1.0 copied to clipboard
Annotation library for declarative SQL table and schema definitions in Dart. Designed to be used with code generators that produce SQL schemas, migrations, or runtime metadata.
Changelog #
1.1.0 #
- Added
SqlDialectKindenum (sqlite,postgres,mysql) and adialectfield on@Schemaso the generator knows which database flavour to emit DDL for (defaults toSqlDialectKind.sqlite, fully backward compatible). - Reorganised SQL types by dialect under
src/sql_types/(common_types,sqlite_types,postgres_types,mysql_types).src/sql_types.dartis now a barrel re-exporting them, so existing type names (VARCHAR,JSONB,Collate,SqlTypes, …) are unchanged.
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
1.0.1 #
- Changed license to MIT
- Updated README with badges
- Removed commented workspace resolution configuration
1.0.0 #
- First stable release.
- Table schema annotations:
@Schema,@Column,@ID. - Database relationship annotations:
@HasMany,@HasOne,@BelongsTo,@ManyToMany, and@Join. - Support for customizable naming strategies, indexes, and custom JSON serialization options.
- Declarative CHECK validators (e.g.
NotEmptyValidator,EmailValidator). - Support for database-independent logical types mapping.
- Added
ValueConverter<D, S>for custom Dart-to-SQL type mappings. - Added test and seed utilities (
Factory<T>andSeederinterfaces).