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

This commit is contained in:
Raymond Feng 2013-07-30 14:21:10 -07:00
parent 24922bc98b
commit 9daf9ef91c
11 changed files with 15 additions and 15 deletions

View File

@ -4,7 +4,7 @@ MySQL connector for Loopback Data.
## Usage
To use it you need `loopback-data`.
To use it you need `loopback-datasource-juggler`.
1. Setup dependencies in `package.json`:
@ -12,7 +12,7 @@ To use it you need `loopback-data`.
{
...
"dependencies": {
"loopback-data": "latest",
"loopback-datasource-juggler": "latest",
"loopback-connector-mysql": "latest"
},
...
@ -22,7 +22,7 @@ To use it you need `loopback-data`.
2. Use:
```javascript
var Schema = require('loopback-data').Schema;
var Schema = require('loopback-datasource-juggler').Schema;
var schema = new Schema('mysql', {
database: 'myapp_test',
username: 'root'
@ -36,7 +36,7 @@ To use it you need `loopback-data`.
## Using the `dataType` field/column option with MySQL
The loopback-data MySQL adapter now supports using the `dataType` column/property attribute to specify what MySQL column type is used for many loopback-data types.
The loopback-datasource-juggler MySQL adapter now supports using the `dataType` column/property attribute to specify what MySQL column type is used for many loopback-datasource-juggler types.
The following type-dataType combinations are supported:
* <h4> Number </h4>

View File

@ -1,4 +1,4 @@
var DataSource = require('loopback-data').DataSource;
var DataSource = require('loopback-datasource-juggler').DataSource;
var ds = new DataSource(require('../'), {
host: '127.0.0.1',

View File

@ -3,7 +3,7 @@
*/
var mysql = require('mysql');
var jdb = require('loopback-data');
var jdb = require('loopback-datasource-juggler');
var EnumFactory = require('./enumFactory').EnumFactory;
exports.initialize = function initializeDataSource(dataSource, callback) {

View File

@ -7,7 +7,7 @@
"test": "make test"
},
"dependencies": {
"loopback-data": "git+ssh://git@github.com:strongloop/loopback-data.git",
"loopback-datasource-juggler": "git+ssh://git@github.com:strongloop/loopback-datasource-juggler.git",
"mysql": ">= 2.0.0-alpha8",
"async": "latest"
},

View File

@ -1,6 +1,6 @@
var should = require('./init.js');
var assert = require('assert');
var Schema = require('loopback-data').Schema;
var Schema = require('loopback-datasource-juggler').Schema;
var db, settings, adapter, DummyModel, odb;

View File

@ -1,6 +1,6 @@
var should = require('./init.js');
var assert = require('assert');
var Schema = require('loopback-data').Schema;
var Schema = require('loopback-datasource-juggler').Schema;
var db, settings, adapter, EnumModel, ANIMAL_ENUM;

View File

@ -4,7 +4,7 @@ describe('mysql imported features', function() {
require('./init.js');
});
require('loopback-data/test/common.batch.js');
require('loopback-data/test/include.test.js');
require('loopback-datasource-juggler/test/common.batch.js');
require('loopback-datasource-juggler/test/include.test.js');
});

View File

@ -1,6 +1,6 @@
module.exports = require('should');
var Schema = require('loopback-data').Schema;
var Schema = require('loopback-datasource-juggler').Schema;
global.getConfig = function(options) {

View File

@ -1,4 +1,4 @@
juggling = require('loopback-data')
juggling = require('loopback-datasource-juggler')
Schema = juggling.Schema
Text = Schema.Text

View File

@ -1,6 +1,6 @@
var should = require('./init.js');
var assert = require('assert');
var Schema = require('loopback-data').Schema;
var Schema = require('loopback-datasource-juggler').Schema;
var db, UserData, StringData, NumberData, DateData;

View File

@ -3,7 +3,7 @@ require('should');
var assert = require('assert');
var Schema = require('loopback-data').Schema;
var Schema = require('loopback-datasource-juggler').Schema;
var db;
before(function() {