loopback/node_modules/data-source
Ritchie Martori a9f27183fa Doc updates 2013-04-26 10:10:13 -07:00
..
lib Refactor various naming conventions. 2013-04-17 17:43:00 -07:00
test Refactor various naming conventions. 2013-04-17 17:43:00 -07:00
.gitignore Refactor various naming conventions. 2013-04-17 17:43:00 -07:00
README.md Doc updates 2013-04-26 10:10:13 -07:00
index.js Refactor various naming conventions. 2013-04-17 17:43:00 -07:00
package.json Add bundledDeps 2013-04-19 09:55:52 -07:00

README.md

data-source

About

A DataSource is the base AsteroidModule class for all data sources. Data sources provide APIs for reading and writing remote data from databases and various http apis.

Creating a custom Data Source

To create a custom data source you must define a class that inherits from DataSource. This class should define all the required options using the asteroid module option api (eg. host, port, username, etc).

The inherited class must provide a property adapter that points to a jugglingdb adapter.