Merge pull request #16 from strongloop/strongloopsuite-1.0

Strongloopsuite 1.0
This commit is contained in:
Raymond Feng 2013-09-13 10:56:33 -07:00
commit 38705a42ee
5 changed files with 15 additions and 8 deletions

View File

@ -11,7 +11,7 @@ LoopBack DataSource Juggler consists of the following components:
* DataSource
* Connector
![loopback-datasource-juggler-overview](overview.png "LoopBack Diagram")
![loopback-datasource-juggler-overview](docs/overview.png "LoopBack Diagram")
## LoopBack Definition Language

View File

@ -39,6 +39,10 @@
"docs/definition-language.md",
"docs/datasource-connector.md"
],
"codeSectionDepth": 4
"codeSectionDepth": 4,
"assets": {
"/": "/docs",
"/docs": "/docs"
}
}

View File

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 118 KiB

View File

@ -220,7 +220,7 @@ DataSource.prototype.setup = function(name, settings) {
}
if (connector) {
var postInit = function postInit() {
var postInit = function postInit(err, result) {
this._setupConnector();
// we have an connector now?
@ -228,8 +228,10 @@ DataSource.prototype.setup = function(name, settings) {
throw new Error('Connector is not defined correctly: it should create `connector` member of dataSource');
}
this.connected = true;
this.emit('connected');
this.connected = !err; // Connected now
if(this.connected) {
this.emit('connected');
}
}.bind(this);

View File

@ -1,7 +1,8 @@
{
"name": "loopback-datasource-juggler",
"description": "ORM for every database: redis, mysql, neo4j, mongodb, couchdb, postgres, sqlite",
"version": "1.0.0",
"description": "LoopBack DataSoure Juggler",
"keywords": [ "StrongLoop", "LoopBack", "DataSource", "Juggler", "ORM" ],
"repository": {
"type": "git",
"url": "https://github.com/strongloop/loopback-datasource-juggler"
@ -20,7 +21,7 @@
"devDependencies": {
"blanket": "~1.1.5",
"should": "~1.2.2",
"mocha": "~1.8.2"
"mocha": "~1.12.1"
},
"dependencies": {
"async": "~0.2.9",
@ -28,4 +29,4 @@
"traverse": "~0.6.5"
},
"license": "MIT"
}
}