How to use data-api-client - 1 common examples

To help you get started, we’ve selected a few data-api-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ArsenyYankovsky / typeorm-aurora-data-api-driver / src / typeorm-aurora-data-api-driver.ts View on Github external
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,
      },
    })
  }

data-api-client

A lightweight wrapper that simplifies working with the Amazon Aurora Serverless Data API

MIT
Latest version published 26 days ago

Package Health Score

71 / 100
Full package analysis

Popular data-api-client functions