2.9.1 • Published 9 years ago

le-storage-service v2.9.1

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

le-storage-service

A simple ORM for real-time datastores

This service and the objects it creates rely heavily on promises for asynchronous tasks. A storage provider (such as le-storage-provider-firebase) is required when constructing the storage object.

Build Status

Dependency Status

Installation

npm install le-storage-service --save

Usage

  var StorageProvider = require('le-storage-provider-firebase');
  var provider = new StorageProvider(/* your firebase url */);
  var StorageService = require('le-storage-service');
  var storage = new StorageService(provider);

  var castle = storage.createRecord('Company');
  castle.update({name: 'Castle', industry: 'Real Estate', founded: 2014})
  .then(function () {
    ...
  });

Tests

  • npm test to run unit tests once
  • gulp tdd to run unit tests on every file change
  • gulp coverage to run unit tests and create a code coverage report

Contributing

Please follow the project's conventions or your changes will not be accepted

Release History

  • 2.0.3 Prefer reject to throw for functions that return promises
  • 2.0.2 Remove data from CollectionService's load in docs
  • 2.0.1 Allow sync and load of empty collections
  • 2.0.1 Allow sync and load of empty collections
  • 2.0.0 Purge has from the api
    • Rename hasOne to relateToOne
    • Rename hasMany to relateToMany
    • Rename hasType to setType and addType for one and many, respectively
  • 1.0.0 Add RecordService and CollectionService
  • 0.1.3 Configure Travis CI to publish docs to GitHub Pages
  • 0.1.2 Add Dependency Status Badge
  • 0.1.1 Add Travis CI
  • 0.1.0 Initial release
2.9.1

9 years ago

2.9.0

10 years ago

2.8.0

10 years ago

2.7.0

10 years ago

2.6.13

10 years ago

2.6.12

10 years ago

2.6.11

10 years ago

2.6.10

10 years ago

2.6.9

10 years ago

2.6.8

10 years ago

2.6.7

10 years ago

2.6.6

10 years ago

2.6.5

10 years ago

2.6.4

10 years ago

2.6.3

10 years ago

2.6.2

10 years ago

2.6.1

10 years ago

2.6.0

10 years ago

2.5.2

10 years ago

2.5.1

10 years ago

2.5.0

10 years ago

2.4.1

10 years ago

2.4.0

10 years ago

2.3.0

10 years ago

2.2.1

10 years ago

2.2.0

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.8

10 years ago

2.0.7

10 years ago

2.0.6

10 years ago

2.0.5

10 years ago

2.0.4

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.0

10 years ago