bigcargo 0.2.6

  • readme.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 31

BigCargo

An abstraction implementation of Cargo on nosql databases

Simple usage

For the moment we have only a MongoDB implementation. Please take a look at the test examples.

Or just look at this.

Cargo storage = new Cargo(MODE: CargoMode.MONGODB, collection: "store", conf: {"address": "mongodb://127.0.0.1/test" });

storage.start().then((_) { storage.clear(); storage["someValue"] = {"value": "go"};

  storage.getItem("someValue").then((value) {
    // do something with the retrieved value!
  });

});

Implementations

We have implemenations for:

  • MongoDB
  • Redis (experimental)

Contributing

If you found a bug, just create a new issue or even better fork and issue a pull request with you fix.

Join our discussion group

Google group

Social media

Twitter

Follow us on twitter https://twitter.com/usethedartforce

Google+

Follow us on google+

or join our G+ Community

Changelog

This file contains highlights of what changes on each version of the cargo package.

Pub version 0.2.6

  • Update to latest Cargo & mongo_dart version

Pub version 0.2.5

  • Update to latest Cargo version
  • Add revert options to export data from MongoDB

Pub version 0.2.4

  • Update to latest Cargo version
  • Add limit options to export data from MongoDB

Pub version 0.2.3+1

  • Fix issues with export function

Pub version 0.2.3

  • Update to latest cargo version 0.6.0
  • Fix params export function for mongoDB

Pub version 0.2.2

  • adapt to cargo 0.5.1, add Map params to export

Pub version 0.2.1

  • fix mongodb issues

Pub version 0.2.0+1

  • fix some small issues with mongodb implementation

Pub version 0.2.0

  • update implementation to Cargo 0.5.0
  • improve redis implementation (still experimental)
  • better use of collections

Pub version 0.1.3

  • adding remove dispatch to bigcargo, so you will receive data change events when something get deleted.

Pub version 0.1.2+4

  • Fixing bug in export method of mongoDB!

Pub version 0.1.2+2 & 0.1.2+3

  • decode value when doing an export()
  • solve issue on dispatching

Pub version 0.1.2+1

  • Improvements to dispatch on setItem, mongo impl

Pub version 0.1.2

  • Implemented export() function for mongoDB

Pub version 0.1.1+1 & 0.1.1+2 & 0.1.1+3

  • make mongodb impl better by fixing 'getItem' issue

Pub version 0.1.1

  • Add redis implementation to the project
  • Adapt implemenations to Future<int> to retrieve the length of the keys into the nosql db

Pub version 0.1.0 & 0.1.0+1

  • Setup of the project
  • Initial implemenation of mongodb

1. Depend on it

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


dependencies:
  bigcargo: "^0.2.6"

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:bigcargo/bigcargo.dart';
        
Version Uploaded Documentation Archive
0.2.6 Aug 7, 2016 Go to the documentation of bigcargo 0.2.6 Download bigcargo 0.2.6 archive
0.2.5 Feb 22, 2015 Go to the documentation of bigcargo 0.2.5 Download bigcargo 0.2.5 archive
0.2.4 Feb 8, 2015 Go to the documentation of bigcargo 0.2.4 Download bigcargo 0.2.4 archive
0.2.3+1 Dec 23, 2014 Go to the documentation of bigcargo 0.2.3+1 Download bigcargo 0.2.3+1 archive
0.2.3 Dec 23, 2014 Go to the documentation of bigcargo 0.2.3 Download bigcargo 0.2.3 archive
0.2.2 Dec 21, 2014 Go to the documentation of bigcargo 0.2.2 Download bigcargo 0.2.2 archive
0.2.0+1 Dec 15, 2014 Go to the documentation of bigcargo 0.2.0+1 Download bigcargo 0.2.0+1 archive
0.2.0 Dec 15, 2014 Go to the documentation of bigcargo 0.2.0 Download bigcargo 0.2.0 archive
0.1.3 Nov 26, 2014 Go to the documentation of bigcargo 0.1.3 Download bigcargo 0.1.3 archive
0.1.2+4 Nov 20, 2014 Go to the documentation of bigcargo 0.1.2+4 Download bigcargo 0.1.2+4 archive

All 19 versions...

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 16, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

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

Platforms

Detected platforms: Flutter, other

Primary library: package:bigcargo/bigcargo.dart with components: io.

Suggestions

  • Fix lib/src/mongo_impl.dart.

    Strong-mode analysis of lib/src/mongo_impl.dart failed with the following error:

    line: 154 col: 25
    The argument type '(List<Map<dynamic, dynamic>>) → Null' can't be assigned to the parameter type '(List<dynamic>) → FutureOr<Null>'.

  • Fix lib/src/cargo.dart.

    Strong-mode analysis of lib/src/cargo.dart failed with the following error:

    line: 4 col: 45
    The private name _cargoDataChange, defined by CargoDispatch, conflicts with the same name defined by CargoDispatch.

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 2 error(s) and 0 warning(s).

  • 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 bigcargo.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
cargo >=0.8.0 <0.9.0 0.8.0
logging >=0.11.0 <0.12.0 0.11.3+1
mongo_dart >=0.2.9 <0.3.0 0.2.10 0.3.1
redis_client >=0.1.13 <0.2.0 0.1.16
Transitive dependencies
bson 0.2.0 0.3.0
charcode 1.1.1
collection 1.14.5
convert 2.0.1
crypto 2.0.2+1
fixnum 0.10.7
mongo_dart_query 0.2.2 0.3.0
more 1.8.1
typed_data 1.1.5
uuid 0.5.3
Dev dependencies
scheduled_test >=0.11.4 <0.12.0
unittest >=0.11.3 <0.11.4