The Protevus Platform: Unified Full-Stack Development https://protevus.com
Find a file
alex 611a785ffc feat: use the new sembast store API
Also ran `dartfmt -w . --fix` to fix the lint warnings
2019-07-18 13:08:46 +02:00
example feat: use the new sembast store API 2019-07-18 13:08:46 +02:00
lib feat: use the new sembast store API 2019-07-18 13:08:46 +02:00
test feat: use the new sembast store API 2019-07-18 13:08:46 +02:00
.gitignore All tests passed 2018-11-06 01:04:37 -05:00
.travis.yml Travis 2018-11-06 01:06:56 -05:00
analysis_options.yaml 1.0.1 2019-04-20 15:13:46 -04:00
CHANGELOG.md 1.0.1 2019-04-20 15:13:46 -04:00
LICENSE Initial commit 2018-11-05 23:55:54 -05:00
pubspec.yaml feat: use the new sembast store API 2019-07-18 13:08:46 +02:00
README.md README 2018-11-06 01:08:57 -05:00

sembast

Pub build status

package:sembast-powered CRUD services for the Angel framework.

Installation

Add the following to your pubspec.yaml:

dependencies:
  angel_sembast: ^1.0.0

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

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(new Finder(filter: new Filter(...))));

Of course, you can use package:sembast queries. Just pass it as query within params.

See the tests for more usage examples.