dartonic_core 1.0.1
dartonic_core: ^1.0.1 copied to clipboard
Core query builder, schema DSL, and interfaces for Dartonic. No database driver dependencies.
1.0.1 #
- Docs: add a Support section and link the official documentation
(dartonic.vercel.app) in the README; set the
documentationfield in the pubspec. No code changes.
1.0.0 #
First stable release of the modular Dartonic ecosystem. dartonic_core is the
driver-agnostic foundation — pair it with a driver package (dartonic_sqlite,
dartonic_postgres or dartonic_mysql).
This package is the successor to the legacy all-in-one
dartonicpackage.
Features #
- Schema DSL — define tables as classes with typed columns
(
integer,text,real,boolean,datetime,blob,json,uuid, PostgrespgEnum), constraints (primaryKey,notNull,unique,references), defaults (default,defaultNow) and indexes. - Type-safe query builder —
select/insert/update/deletewith a composable condition API (eq,gt,lt,like,inArray,and,or,isNull, …), joins,orderBy,limit/offset, aggregates andgroupBy/having. - ORM helpers —
findMany,findFirst,findById, and declarative relation loading for one-to-many, one-to-one and many-to-many. - Mutations —
returning(), batch insert, and upsert. - Transactions —
transaction()with automatic commit/rollback. - Migrations — programmatic runner and schema diffing (
diffSchema). - Typed errors —
DatabaseErrorhierarchy (UniqueViolationError,ForeignKeyError,NotNullViolationError,ConnectionError, …) so callers can map failures to meaningful responses. - Driver-agnostic core — no database dependencies; drivers plug in via the
driver interfaces. Network drivers support connection pooling through
PoolConfig.