loxia 0.0.5
loxia: ^0.0.5 copied to clipboard
A lightweight Dart ORM for Relational Databases built to be simple and extensible.
Changelog #
0.0.5 #
- Fix nullable option also in column descriptors, ensuring that the generated code correctly reflects the nullability of columns as defined in the entity classes. This change ensures that the database schema and the generated code are consistent with the intended design of your entities, preventing potential issues with null values in your application.
0.0.4 #
- Added support for Enum fields in entities, allowing you to define enum properties that will be automatically converted to and from their string representation in the database. You can specify the column type for enum fields using the
typeoption in the@Columnannotation, choosing betweenColumnType.textfor string representation orColumnType.integerfor index-based representation. - Set the
nullableoption tofalseby default for all columns to enforce non-nullable fields unless explicitly specified otherwise. This change encourages better data integrity and reduces the likelihood of null-related errors in your application. You can still setnullable: truefor columns that should allow null values as needed.
0.0.3 #
- Added support for UUID primary keys in both SQLite and PostgreSQL drivers. You can now define a primary key as a UUID string by using the
@PrimaryKey(uuid: true)annotation on your entity fields. - Added support for
toJsonmethod in entities and partial entities, allowing you to easily convert your entities to JSON format for serialization or API responses. - Improve Postgres schema synchronization.
- Added default select allowing for less verbose queries when you want to select all columns of an entity without needing to specify them explicitly.
0.0.2 #
- Fixed a bug in the generated code where
createdAtandupdatedAtfields won't assign the value returned by the database, causing them to always be set to null, - Fixed a bug in the
postgresdriver that caused the primary key of a table to not be properly generated. - Added the
synchronizeoption to all the drivers, allowing to automatically synchronize the database schema with the entities on startup. This is enabled by default to prevent accidental data loss, but can be disabled for development or testing purposes.
0.0.1 #
- Initial release of Loxia, a lightweight ORM for Dart supporting SQLite and PostgreSQL databases.