Rename 'loopback-data' to 'loopback-datasource-juggler'
This commit is contained in:
parent
24922bc98b
commit
9daf9ef91c
|
@ -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>
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
});
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
juggling = require('loopback-data')
|
||||
juggling = require('loopback-datasource-juggler')
|
||||
Schema = juggling.Schema
|
||||
Text = Schema.Text
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue