From 9daf9ef91cc9cb86a89beabd0ff043fa8e3b88ef Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Tue, 30 Jul 2013 14:21:10 -0700 Subject: [PATCH] Rename 'loopback-data' to 'loopback-datasource-juggler' --- README.md | 8 ++++---- example/app.js | 2 +- lib/mysql.js | 2 +- package.json | 2 +- test/connection.test.js | 2 +- test/datatypes.test.js | 2 +- test/imported.test.js | 4 ++-- test/init.js | 2 +- test/migration.coffee | 2 +- test/migration.test.js | 2 +- test/mysql.discover.test.js | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f34dae1..8ca66cd 100644 --- a/README.md +++ b/README.md @@ -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: *

Number

diff --git a/example/app.js b/example/app.js index d375df3..d38ede6 100644 --- a/example/app.js +++ b/example/app.js @@ -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', diff --git a/lib/mysql.js b/lib/mysql.js index aad89df..db0c09a 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -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) { diff --git a/package.json b/package.json index 215ac56..559a882 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/test/connection.test.js b/test/connection.test.js index 9e57dcb..3c88656 100644 --- a/test/connection.test.js +++ b/test/connection.test.js @@ -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; diff --git a/test/datatypes.test.js b/test/datatypes.test.js index 737651a..8250f15 100644 --- a/test/datatypes.test.js +++ b/test/datatypes.test.js @@ -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; diff --git a/test/imported.test.js b/test/imported.test.js index 5dcbfe9..681325f 100644 --- a/test/imported.test.js +++ b/test/imported.test.js @@ -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'); }); diff --git a/test/init.js b/test/init.js index d40d50b..0320e62 100644 --- a/test/init.js +++ b/test/init.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) { diff --git a/test/migration.coffee b/test/migration.coffee index f088554..1e5e25f 100644 --- a/test/migration.coffee +++ b/test/migration.coffee @@ -1,4 +1,4 @@ -juggling = require('loopback-data') +juggling = require('loopback-datasource-juggler') Schema = juggling.Schema Text = Schema.Text diff --git a/test/migration.test.js b/test/migration.test.js index c26d92d..dcd3d94 100644 --- a/test/migration.test.js +++ b/test/migration.test.js @@ -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; diff --git a/test/mysql.discover.test.js b/test/mysql.discover.test.js index 51ad6bd..695546a 100644 --- a/test/mysql.discover.test.js +++ b/test/mysql.discover.test.js @@ -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() {