box 0.0.9 copy "box: ^0.0.9" to clipboard
box: ^0.0.9 copied to clipboard

outdatedDart 1 only

A fluent Dart persistence API inspired by SQL

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.

Example:

Box box = new Box.file('.box/test');
Future<List<User>> result = box.selectFrom(User)
                                 .where('name').like('C%')
                                 .orderBy('name').ascending()
                                 .list();
result.then((users) => 
    users.forEach((user) => 
        print(user.name)));
12
likes
0
points
81
downloads

Publisher

unverified uploader

Weekly Downloads

A fluent Dart persistence API inspired by SQL

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, exportable, io, reflective

More

Packages that depend on box