dartonic_core 1.0.1 copy "dartonic_core: ^1.0.1" to clipboard
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 documentation field 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 dartonic package.

Features #

  • Schema DSL — define tables as classes with typed columns (integer, text, real, boolean, datetime, blob, json, uuid, Postgres pgEnum), constraints (primaryKey, notNull, unique, references), defaults (default, defaultNow) and indexes.
  • Type-safe query builderselect/insert/update/delete with a composable condition API (eq, gt, lt, like, inArray, and, or, isNull, …), joins, orderBy, limit/offset, aggregates and groupBy/ having.
  • ORM helpersfindMany, findFirst, findById, and declarative relation loading for one-to-many, one-to-one and many-to-many.
  • Mutationsreturning(), batch insert, and upsert.
  • Transactionstransaction() with automatic commit/rollback.
  • Migrations — programmatic runner and schema diffing (diffSchema).
  • Typed errorsDatabaseError hierarchy (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.
2
likes
130
points
46
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Core query builder, schema DSL, and interfaces for Dartonic. No database driver dependencies.

Repository (GitHub)
View/report issues

Topics

#orm #database #sql #query-builder

License

MIT (license)

Dependencies

path, uuid

More

Packages that depend on dartonic_core