Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
private readonly region: string,
private readonly secretArn: string,
private readonly resourceArn: string,
private readonly database: string,
private readonly loggerFn: (query: string, parameters?: any[]) => void = () => undefined,
) {
this.region = region
this.secretArn = secretArn
this.resourceArn = resourceArn
this.database = database
this.loggerFn = loggerFn
this.client = createDataApiClient({
secretArn,
resourceArn,
database,
options: {
region,
},
})
}