aim_orm_postgres 0.1.0
aim_orm_postgres: ^0.1.0 copied to clipboard
PostgreSQL ORM implementation for Dart with Record syntax table definitions and type-safe query builders.
0.1.0 #
See Release Notes
0.0.1 #
Initial release of aim_orm_postgres - PostgreSQL ORM implementation for Dart.
Features #
- Record Syntax Table Definitions:
@PgTableannotation for table declaration- Type-safe column definitions using Dart Records
- PostgreSQL Column Types:
uuid()- UUID typeserial()- Auto-increment integerjsonb<T>()- JSONB with generic type support
- Foreign Key Support:
references()- Define foreign key relationshipsOnDeleteAction- CASCADE, SET NULL, RESTRICT, NO ACTION
- Code Generation:
- Automatic query builder generation
- Type-safe Row typedefs
- PostgresDatabase extension methods
- PostgresTransaction extension methods
CRUD Operations #
- SELECT with WHERE, LIMIT, OFFSET
- INSERT with type-safe values
- UPDATE with SET and WHERE
- DELETE with WHERE
Supported #
- Dart SDK:
^3.10.0 - PostgreSQL: All versions supported by aim_postgres
What's Included #
PgTableannotation class- PostgreSQL-specific column types (SerialColumn, UuidColumn, JsonbColumn)
- Column builder functions (serial, uuid, jsonb)
- Integration with aim_orm_codegen for code generation