loxia 0.0.10
loxia: ^0.0.10 copied to clipboard
A lightweight Dart ORM for Relational Databases built to be simple and extensible.
Changelog #
0.0.10 #
- Added support for custom Queries. Allowing user to define custom sql queries in their repositories.
- Added support for Unique Constraints. Allowing user to define multiple unique constraints on their entities.
0.0.9 #
- Remove debug print statements from the codebase to clean up the output.
0.0.8 #
- Make json serialization and deserialization of fields in entities more robust.
0.0.7 #
- Fix generation for fromRow method to handle DateTime fields correctly.
0.0.6 #
- Fix JSON serialization of fields in entities, mainly List and Map fields
- Fix Enum encoding and decoding from database, ensuring that enum values are correctly stored and retrieved as their string representation in the database. This change improves the handling of enum fields in your entities, allowing for more intuitive and consistent storage of enum values without needing to manually convert them to and from their string representation.
- Fix DataTime encoding and decoding from database, ensuring that DateTime fields are correctly stored and retrieved in ISO 8601 format. This change enhances the handling of DateTime fields in your entities, allowing for accurate storage and retrieval of date and time information without needing to manually convert them to and from their string representation.
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.