Newbie012 / kysely-data-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:TypeScript 94.8%Language:JavaScript 4.7%Language:Shell 0.6%