You will need to implement two class in order to have a compatible no sql database
For the Database we provide a NoSqlDatabaseInterface that allow you to do do action at differents step of the life of your database.
You can find a fake no sql database here by it self this database does nothing. It just implement all the necessary method to be a valid database.
For the Collection we provide a CollectionInterface that allow you to do things on your collection like insert entry, update entry, etc
You can find a fake no sql collection here that interface does nothing but you get the idea.
Database has specific id to handle that we provide a class that must be used by the end user so it never deal with a database specific id. This class is DatabaseId just wrap a String where you can store the id of the specific database.
Add this to your package's pubspec.yaml file:
dependencies: database_interface: ^1.0.0-dev.0
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.0-dev.0||Oct 9, 2018|
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 Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
CHANGELOG.md. (-20 points)
Changelog entries help clients to follow the progress in your code.
The description is too short. (-20 points)
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package. Common file name patterns include:
example.dart or you could also use
Package is pre-release. (-5 points)
Pre-release versions should be used with caution, their API may change in breaking ways.