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
slnode install loopback-data
slnode install loopback-datasource-juggler
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
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,
var DataSource = require('loopback-data').DataSource;
var DataSource = require('loopback-datasource-juggler').DataSource;
var oracleConnector = require('loopback-connector-oracle');
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.
@ -24,9 +24,9 @@ Instances of DataSource are event emitters, events supported by default:
### 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
connector name or connector package:
@ -123,5 +123,5 @@ db structure outdated, true when dataSource and db is in sync:
## SEE ALSO
loopback-data-model
loopback-data-connector
loopback-datasource-juggler-model
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).
## Overview
![loopback-data](loopback-data.png "Loopback Data Diagram")
![loopback-datasource-juggler](loopback-datasource-juggler.png "Loopback Data Diagram")
## 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 ModelBuilder = require('../../loopback-data').ModelBuilder;
var DataSource = require('../../loopback-datasource-juggler').DataSource;
var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
var introspectType = require('../lib/introspection');
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();
// define models
var Post = modelBuilder.define('Post', {

View File

@ -1,5 +1,5 @@
var DataSource = require('../../loopback-data').DataSource;
var ModelBuilder = require('../../loopback-data').ModelBuilder;
var DataSource = require('../../loopback-datasource-juggler').DataSource;
var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
var ds = new DataSource('memory');
// 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();
// simplier way to describe model

View File

@ -161,7 +161,7 @@ exports.initialize = function(dataSource, callback) {
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.port = port;

View File

@ -6,7 +6,7 @@ function safeRequire(module) {
try {
return require(module);
} 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);
}
}

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",
"version": "0.0.1",
"repository": {
"type": "git",
"url": "https://github.com/strongloop/loopback-data"
"url": "https://github.com/strongloop/loopback-datasource-juggler"
},
"main": "index.js",
"scripts": {

View File

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