MYSQL.ConnectionConfig => MYSQL.ConnectionOptions

This commit is contained in:
Elliot Konetzni 2020-11-30 10:52:20 +01:00 committed by E Konetzni
parent f8694415e5
commit 5c7f7316d6

View File

@ -466,7 +466,7 @@ export default class MysqlDriver extends AbstractDriver {
public async ConnectToServer(connectionOptons: IConnectionOptions) {
const databaseName = connectionOptons.databaseNames[0];
let config: MYSQL.ConnectionConfig;
let config: MYSQL.ConnectionOptions;
if (connectionOptons.ssl) {
config = {
database: databaseName,
@ -476,7 +476,7 @@ export default class MysqlDriver extends AbstractDriver {
ssl: {
rejectUnauthorized: false,
},
timeout: 60 * 60 * 1000,
connectTimeout: 60 * 60 * 1000,
user: connectionOptons.user,
};
} else {
@ -485,7 +485,7 @@ export default class MysqlDriver extends AbstractDriver {
host: connectionOptons.host,
password: connectionOptons.password,
port: connectionOptons.port,
timeout: 60 * 60 * 1000,
connectTimeout: 60 * 60 * 1000,
user: connectionOptons.user,
};
}