Rename 'loopback-data' to 'loopback-datasource-juggler'

This commit is contained in:
Raymond Feng 2013-07-30 14:10:03 -07:00
parent 7ce6cfc9ab
commit f3443959a1
13 changed files with 22 additions and 22 deletions

View File

@ -4,7 +4,7 @@ Loopback Data is an ORM that provides a common set of interfaces for interacting
## Installation ## Installation
slnode install loopback-data slnode install loopback-datasource-juggler
Also install the appropriated connector, for example for mongodb: Also install the appropriated connector, for example for mongodb:

View File

@ -1,4 +1,4 @@
# loopback-data-connector # loopback-datasource-juggler-connector
Loopback connectors provide access to backend systems including databases, REST APIs Loopback connectors provide access to backend systems including databases, REST APIs
and other services. Connectors are not used directly by application code. We create and other services. Connectors are not used directly by application code. We create
@ -6,7 +6,7 @@ a DataSource to interact with the connector.
For example, For example,
var DataSource = require('loopback-data').DataSource; var DataSource = require('loopback-datasource-juggler').DataSource;
var oracleConnector = require('loopback-connector-oracle'); var oracleConnector = require('loopback-connector-oracle');
var ds = new DataSource(oracleConnector, { var ds = new DataSource(oracleConnector, {

View File

@ -1,4 +1,4 @@
# loopback-data-datasource # loopback-datasource-juggler-datasource
Everything about datasource, data types and model definition. Everything about datasource, data types and model definition.
@ -24,9 +24,9 @@ Instances of DataSource are event emitters, events supported by default:
### Creating dataSource ### Creating dataSource
`DataSource` constructor available on `loopback-data` module: `DataSource` constructor available on `loopback-datasource-juggler` module:
var DataSource = require('loopback-data').DataSource; var DataSource = require('loopback-datasource-juggler').DataSource;
DataSource constructor accepts two arguments. First argument is connector. It could be DataSource constructor accepts two arguments. First argument is connector. It could be
connector name or connector package: connector name or connector package:
@ -123,5 +123,5 @@ db structure outdated, true when dataSource and db is in sync:
## SEE ALSO ## SEE ALSO
loopback-data-model loopback-datasource-juggler-model
loopback-data-connector loopback-datasource-juggler-connector

View File

@ -1,11 +1,11 @@
# loopback-data # loopback-datasource-juggler
Loopback-data provides ORM and data connectivity for Node.js. It was initially forked from [JugglingDB](https://github.com/1602/jugglingdb). Loopback-data provides ORM and data connectivity for Node.js. It was initially forked from [JugglingDB](https://github.com/1602/jugglingdb).
## Overview ## Overview
![loopback-data](loopback-data.png "Loopback Data Diagram") ![loopback-datasource-juggler](loopback-datasource-juggler.png "Loopback Data Diagram")
## SEE ALSO ## SEE ALSO
loopback-data-connector loopback-datasource-juggler-connector

View File

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 145 KiB

View File

@ -1,5 +1,5 @@
var DataSource = require('../../loopback-data').DataSource; var DataSource = require('../../loopback-datasource-juggler').DataSource;
var ModelBuilder = require('../../loopback-data').ModelBuilder; var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
var introspectType = require('../lib/introspection'); var introspectType = require('../lib/introspection');
var ds = new DataSource('memory'); var ds = new DataSource('memory');

View File

@ -1,4 +1,4 @@
var ModelBuilder = require('../../loopback-data').ModelBuilder; var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
var modelBuilder = new ModelBuilder(); var modelBuilder = new ModelBuilder();
// define models // define models
var Post = modelBuilder.define('Post', { var Post = modelBuilder.define('Post', {

View File

@ -1,5 +1,5 @@
var DataSource = require('../../loopback-data').DataSource; var DataSource = require('../../loopback-datasource-juggler').DataSource;
var ModelBuilder = require('../../loopback-data').ModelBuilder; var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
var ds = new DataSource('memory'); var ds = new DataSource('memory');
// define models // define models

View File

@ -1,4 +1,4 @@
var ModelBuilder = require('../../loopback-data').ModelBuilder; var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
var modelBuilder = new ModelBuilder(); var modelBuilder = new ModelBuilder();
// simplier way to describe model // simplier way to describe model

View File

@ -161,7 +161,7 @@ exports.initialize = function(dataSource, callback) {
options.auth.password = dataSource.settings.password; options.auth.password = dataSource.settings.password;
} }
} }
var database = dataSource.settings.database || 'loopback-data'; var database = dataSource.settings.database || 'loopback-datasource-juggler';
dataSource.settings.host = host; dataSource.settings.host = host;
dataSource.settings.port = port; dataSource.settings.port = port;

View File

@ -6,7 +6,7 @@ function safeRequire(module) {
try { try {
return require(module); return require(module);
} catch (e) { } catch (e) {
console.log('Run "npm install loopback-data ' + module + '" command to use loopback-data using ' + module + ' database engine'); console.log('Run "npm install loopback-datasource-juggler ' + module + '" command to use loopback-datasource-juggler using ' + module + ' database engine');
process.exit(1); process.exit(1);
} }
} }

View File

@ -1,10 +1,10 @@
{ {
"name": "loopback-data", "name": "loopback-datasource-juggler",
"description": "ORM for every database: redis, mysql, neo4j, mongodb, couchdb, postgres, sqlite", "description": "ORM for every database: redis, mysql, neo4j, mongodb, couchdb, postgres, sqlite",
"version": "0.0.1", "version": "0.0.1",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/strongloop/loopback-data" "url": "https://github.com/strongloop/loopback-datasource-juggler"
}, },
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -3,7 +3,7 @@ var should = require('./init.js');
var loopbackData = require('../'); var loopbackData = require('../');
describe('loopback-data', function() { describe('loopback-datasource-juggler', function() {
it('should expose version', function () { it('should expose version', function () {
loopbackData.version.should.equal(require('../package.json').version); loopbackData.version.should.equal(require('../package.json').version);
}); });