jao 0.2.4
jao: ^0.2.4 copied to clipboard
Just Another ORM for Dart. Because you didn't have enough options already.
0.2.4 - 2026-01-01 #
Added #
- Common Table Expressions (CTE) support:
Cteclass for defining non-recursive CTEsRecursiveCteclass for hierarchical/recursive queriesCteRefandCteColumnReffor referencing CTE columnsCteQueryinterface for queries that can be used in CTEs.with_()method on QuerySet to attach CTEs.fromCte()method on QuerySet to select from a CTE- SQL compiler generates
WITHandWITH RECURSIVEclauses
0.2.3 - 2026-01-01 #
Added #
values()method on QuerySet for selecting specific columns as raw mapsvaluesFlat<V>()method on QuerySet for selecting a single column as a flat listValuesQuerySetandValuesListQuerySetclasses with full query chaining support- New executor methods:
executeValues()andexecuteValuesFlat<V>()
0.2.2 - 2026-01-01 #
Added #
- Model metadata system for proper JOIN compilation:
ModelMetadata,FieldMeta,RelationMetaclasses for runtime metadataModelRegistryfor global model metadata lookups- SQL compiler now uses registry for accurate JOIN clauses
- Falls back to convention-based joins if metadata not registered
0.2.0 - 2025-12-31 #
Added #
- Type converter functions for cross-database compatibility:
dbDateTime,dbDateTimeOrNull- handles DateTime, String, and int (timestamp)dbBool,dbBoolOrNull- handles bool, int (0/1), and StringdbInt,dbIntOrNull- handles int, double, and StringdbDouble,dbDoubleOrNull- handles double, int, and StringdbDuration,dbDurationOrNull- handles Duration, int (microseconds), and String
Fixed #
- Cross-database type compatibility issue where
fromRow()failed with PostgreSQL native types (#4)
0.1.0 - 2025-12-28 #
Added #
DatabaseConfig.postgres()factory constructor for PostgreSQL configurationDatabaseConfig.mysql()factory constructor for MySQL configuration
0.0.1 - 2025-12-28 #
Added #
- Initial release
- Django-style model definitions with field annotations
- Type-safe query building with
Qexpressions - Multi-database support (SQLite, PostgreSQL, MySQL)
- Schema migrations with up/down support
- Auto-generated
created_atandupdated_attimestamps viaautoNowandautoNowAdd - Manager pattern for database operations
- Field types:
AutoField,BigAutoField,CharField,TextField,IntegerField,BooleanField,FloatField,DateTimeField,DateField,EmailField,ForeignKey - Query expressions:
eq,gt,gte,lt,lte,between,contains,startsWith,endsWith,iContains,isNull,isNotNull - Logical operators:
&(AND),|(OR) withQexpressions