Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Latest commit

 

History

History
19 lines (15 loc) · 475 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 475 Bytes

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 });