1.0.0 • Published 1 year ago

kysely-data-api-aws-sdk-v3 v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

THIS IS A FORK OF THE ORIGINAL PROJECT

This is a fork of the original project, with support for aws-sdk-v3

Kysely Data Api

This library adds AWS RDS Data Api support for kysely. It has support for both MySQL and Postgres

Usage

const dataApi = new DataApiDialect({
  mode: "mysql",
  driver: {
    client: new RDSDataService(),
    database: "bench",
    secretArn: "<arn of secret containing credentials",
    resourceArn: "<arn of database>",
  },
});

export const db = new Kysely<Database>({ dialect: dataApi });