Dart Box

A fluent Dart persistence API inspired by SQL. This library is still in an early phase of development. Currently Box has two implementations.

  • Box: a very simple implementation that runs completely in-memory.
  • FileBox: an in-memory implementation that persists data to a simple JSON file.

Support for various SQL and NoSQL databases is on the roadmap.


Box box = new Box.file('.box/test');
Stream<User> users = box.selectFrom(User)
users.listen((user) => print(user.name)));