Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mysql2 lib to be able to use MySQL 8 #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ module.exports = require('machine').pack({
//... well except for this.
// Also give the driver a `mysql` property, so that it provides access
// to the `mysql` library for Node.js. (See http://npmjs.com/package/mysql)
module.exports.mysql = require('mysql');
module.exports.mysql = require('mysql2');
2 changes: 1 addition & 1 deletion lib/create-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var util = require('util');
var Url = require('url');
var _ = require('@sailshq/lodash');
var felix = require('mysql');
var felix = require('mysql2');

module.exports = {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"debug": "2.6.9",
"@sailshq/lodash": "^3.10.4",
"machine": "^15.0.0",
"mysql": "2.18.0",
"mysql2": "^3.6.1",
"waterline-sql-builder": "^3.0.0"
},
"devDependencies": {
Expand Down