diff --git a/lib/mysql.js b/lib/mysql.js index b7a67d6..02a3b0e 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -3,7 +3,7 @@ */ var mysql = require('mysql'); -var jdb = require('loopback-datasource-juggler'); +var juggler = require('loopback-datasource-juggler'); var EnumFactory = require('./enumFactory').EnumFactory; /** @@ -73,7 +73,7 @@ exports.initialize = function initializeDataSource(dataSource, callback) { }); // MySQL specific column types - dataSource.constructor.registerType(function Point() {}); + juggler.ModelBuilder.registerType(function Point() {}); dataSource.EnumFactory = EnumFactory; // factory for Enums. Note that currently Enums can not be registered. @@ -94,7 +94,7 @@ function MySQL(client, settings) { this.settings = settings; } -require('util').inherits(MySQL, jdb.BaseSQL); +require('util').inherits(MySQL, juggler.BaseSQL); /** * Execute the sql statement diff --git a/package.json b/package.json index 4db5532..67b3d5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-connector-mysql", - "version": "1.0.1", + "version": "1.0.2", "description": "MySQL connector for loopback-datasource-juggler", "main": "index.js", "scripts": {