in src/connector.ts [276:300]
async getTediousOptions({
authType,
ipType,
instanceConnectionName,
}: ConnectionOptions): Promise<TediousDriverOptions> {
if (authType === AuthTypes.IAM) {
throw new CloudSQLConnectorError({
message: 'Tedious does not support Auto IAM DB Authentication',
code: 'ENOIAM',
});
}
const driverOptions = await this.getOptions({
authType,
ipType,
instanceConnectionName,
});
return {
async connector() {
return driverOptions.stream();
},
// note: the connector handles a secured encrypted connection
// with that in mind, the driver encryption is disabled here
encrypt: false,
};
}