platform/packages/sembast
2021-06-21 14:33:18 +08:00
..
example Published sembast 2021-06-21 14:16:06 +08:00
lib Published sembast 2021-06-21 14:16:06 +08:00
test Published sembast 2021-06-21 14:16:06 +08:00
.gitignore Add 'packages/sembast/' from commit 'eda2acc36a69cefbe038c0a362a03b23aa4f13de' 2020-02-15 18:43:59 -05:00
.travis.yml Add 'packages/sembast/' from commit 'eda2acc36a69cefbe038c0a362a03b23aa4f13de' 2020-02-15 18:43:59 -05:00
analysis_options.yaml Add 'packages/sembast/' from commit 'eda2acc36a69cefbe038c0a362a03b23aa4f13de' 2020-02-15 18:43:59 -05:00
AUTHORS.md Merged from sdk-2.12.x_nnbd 2021-06-20 20:37:20 +08:00
CHANGELOG.md Published sembast 2021-06-21 14:16:06 +08:00
LICENSE Published sembast 2021-06-21 14:16:06 +08:00
pubspec.yaml Published markdown 2021-06-21 14:33:18 +08:00
README.md Published sembast 2021-06-21 14:16:06 +08:00

Angel3 Sembast

version Null Safety Gitter

License

A sembast-powered CRUD services for the Angel3 framework.

Installation

Add the following to your pubspec.yaml:

dependencies:
  angel3_sembast: ^2.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(Finder(filter: Filter(...))));

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

See the tests for more usage examples.