document_db 0.0.1

  • README.md
  • Installing
  • Versions
  • 33

document_db

A common interface for IndexedDB and MongoDB in Dart. Use the same API to store and retrieve JSON data online and offline.

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  document_db: "^0.0.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:document_db/document_db.dart';
        
Version Uploaded Documentation Archive
0.0.1 Jun 17, 2016 Go to the documentation of document_db 0.0.1 Download document_db 0.0.1 archive

Analysis

We analyzed this package on Apr 9, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.46.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
15 / 100
Overall score:
Weighted score of the above. [more]
33
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:document_db/document_db.dart.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use document_db.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Strong-mode analysis of lib/src/indexed_db.dart gave the following hint:

    line: 21 col: 21
    Unnecessary cast.

Dependencies

Package Constraint Resolved Available
Direct dependencies
browser >=0.10.0+2 <0.11.0 0.10.0+3
bson >=0.2.0 <0.3.0 0.2.0 0.3.0
mongo_dart >=0.2.5+1 <0.3.0 0.2.10 0.3.1
Transitive dependencies
charcode 1.1.1
collection 1.14.9
convert 2.0.1
crypto 2.0.2+1
fixnum 0.10.7
logging 0.11.3+1
mongo_dart_query 0.2.2 0.3.0
more 1.9.0
typed_data 1.1.5
uuid 0.5.3
Dev dependencies
test any