dorm_memory_database 2.0.0-dev.5 copy "dorm_memory_database: ^2.0.0-dev.5" to clipboard
dorm_memory_database: ^2.0.0-dev.5 copied to clipboard

An in-memory Dart implementation of the dORM database engine.

example/README.md

dorm_memory_database example #

dorm_memory_database provides a pure Dart in-memory engine for dORM. It does not require a database server or a connection object.

Create the engine #

Add dorm_framework and dorm_memory_database to an application, then pass an engine instance to the Dorm facade generated by dorm_generator:

import 'package:dorm_memory_database/dorm_memory_database.dart';

final Engine engine = Engine();
final dorm = Dorm(engine);

Dorm is generated application code and is not exported by this backend package. Reuse the same Engine instance wherever the application must share the same in-process state. A new engine starts with empty state, and its records live only in the current process.

Run the complete showcase #

dart pub global activate dorm_example
dorm_example --engine memory
cd memory
flutter pub get
dart run build_runner build
flutter run -d chrome

The generated project demonstrates repositories, filters, relationships, reactive streams, and transactions using this engine.

0
likes
160
points
198
downloads

Documentation

API reference

Publisher

verified publisherenzosantos.dev

Weekly Downloads

An in-memory Dart implementation of the dORM database engine.

Homepage
Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

Dependencies

dorm_framework, uuid

More

Packages that depend on dorm_memory_database