|
|
@ -749,16 +749,22 @@ export default abstract class BaseApiBuilder<T extends Noco> implements XcDynami |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.connectionConfig?.connection?.ssl && typeof this.connectionConfig?.connection?.ssl === 'object') { |
|
|
|
if (this.connectionConfig?.connection?.ssl && typeof this.connectionConfig?.connection?.ssl === 'object') { |
|
|
|
|
|
|
|
if (this.connectionConfig.connection.ssl.caFilePath) { |
|
|
|
this.connectionConfig.connection.ssl.ca = fs |
|
|
|
this.connectionConfig.connection.ssl.ca = fs |
|
|
|
.readFileSync(this.connectionConfig.connection.ssl.caFilePath) |
|
|
|
.readFileSync(this.connectionConfig.connection.ssl.caFilePath) |
|
|
|
.toString(); |
|
|
|
.toString(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.connectionConfig.connection.ssl.keyFilePath) { |
|
|
|
this.connectionConfig.connection.ssl.key = fs |
|
|
|
this.connectionConfig.connection.ssl.key = fs |
|
|
|
.readFileSync(this.connectionConfig.connection.ssl.keyFilePath) |
|
|
|
.readFileSync(this.connectionConfig.connection.ssl.keyFilePath) |
|
|
|
.toString(); |
|
|
|
.toString(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.connectionConfig.connection.ssl.certFilePath) { |
|
|
|
this.connectionConfig.connection.ssl.cert = fs |
|
|
|
this.connectionConfig.connection.ssl.cert = fs |
|
|
|
.readFileSync(this.connectionConfig.connection.ssl.certFilePath) |
|
|
|
.readFileSync(this.connectionConfig.connection.ssl.certFilePath) |
|
|
|
.toString(); |
|
|
|
.toString(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const isSqlite = this.connectionConfig.client === 'sqlite3'; |
|
|
|
const isSqlite = this.connectionConfig.client === 'sqlite3'; |
|
|
|
this.baseLog(`initDbDriver : initializing db driver first time`) |
|
|
|
this.baseLog(`initDbDriver : initializing db driver first time`) |
|
|
|