Add aliases for some properties
This commit is contained in:
parent
a06f4e5289
commit
dfa995eb17
lib
|
@ -22,9 +22,9 @@ exports.initialize = function initializeDataSource(dataSource, callback) {
|
||||||
s.timezone = (s.timezone || 'local');
|
s.timezone = (s.timezone || 'local');
|
||||||
|
|
||||||
dataSource.client = mysql.createConnection({
|
dataSource.client = mysql.createConnection({
|
||||||
host: s.host || 'localhost',
|
host: s.host || s.hostname || 'localhost',
|
||||||
port: s.port || 3306,
|
port: s.port || 3306,
|
||||||
user: s.username,
|
user: s.username || s.user,
|
||||||
password: s.password,
|
password: s.password,
|
||||||
timezone: s.timezone,
|
timezone: s.timezone,
|
||||||
debug: s.debug,
|
debug: s.debug,
|
||||||
|
|
Loading…
Reference in New Issue