kysely-data-api-using-describe
v2.0.3
Published
This library adds AWS RDS Data Api support for [kysely](https://github.com/koskimas/kysely). It has support for both MySQL and Postgres. This package is a fork of [kysely-data-api](https://www.npmjs.com/package/kysely-data-api). It removes the secretArn i
Downloads
13
Readme
Kysely Data Api
This library adds AWS RDS Data Api support for kysely. It has support for both MySQL and Postgres. This package is a fork of kysely-data-api. It removes the secretArn input and instead gets the secretArn by doing a DescribeDBClustersCommand.
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 });