A fluent Dart persistence API inspired by SQL. This library is still in an early phase of development. Currently Box has two implementations.
Support for various SQL and NoSQL databases is on the roadmap.
Box box = new Box.file('.box/test'); Stream<User> users = box.selectFrom(User) .where('name').like('C%') .orderBy('name').ascending() .list(); users.listen((user) => print(user.name)));
Add this to your package's pubspec.yaml file:
dependencies: box: ^0.1.0
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.1.1||Dec 5, 2018|
|0.1.0||Dec 5, 2018|
|0.0.14||Mar 27, 2016|
|0.0.13||Dec 1, 2015|
|0.0.12||Nov 26, 2015|
|0.0.11||Nov 25, 2015|
|0.0.9||Nov 25, 2015|
|0.0.7||Nov 24, 2015|
|0.0.6||Nov 24, 2015|
|0.0.5||Apr 21, 2015|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: other
Document public APIs. (-0.72 points)
105 out of 106 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
lib/box.dart. (-0.50 points)
lib/box.dart reported 1 hint:
line 7 col 1: 'package:collection/equality.dart' is deprecated and shouldn't be used.
dartfmt to format
Provide a file named
CHANGELOG.md. (-20 points)
Changelog entries help developers follow the progress of your package. See the example generated by
The package description is too short. (-15 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
box.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.