angel3_sembast

Last updated:

0 purchases

angel3_sembast Image
angel3_sembast Images
Add to Cart

Description:

angel3 sembast

Sembast Persistent Service for Angel3 #




A plugin service that persist data to Sembast for Angel3 framework.
Installation #
Add the following to your pubspec.yaml:
dependencies:
angel3_sembast: ^8.0.0
copied to clipboard
Usage #
This library exposes one main class: SembastService.
SembastService #
This class interacts with a Database and Store (from package:sembast) and serializes data to and from Maps.
Querying #
You can query these services as follows:
/path/to/service?foo=bar
copied to clipboard
The above will query the database to find records where 'foo' equals 'bar'.
The former will sort result in ascending order of creation, and so will the latter.
List queried = await MyService.index({r"query": where.id(Finder(filter: Filter(...))));
copied to clipboard
Of course, you can use package:sembast queries. Just pass it as query within params.
See the tests for more usage examples.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.