Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

alan-cooney/knex-data-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

knex-data-api-client

Knex RDS Data API Client

npm npm

The Knex Data API Client is a Knex extension that supports the RDS Data API, built using Jeremy Daily's excellent data-api-client module.

Support for transactions, and nestTables is included.

Use

const knexDataApiClient = require("knex-data-api-client");
const knex = require("knex")({
  client: knexDataApiClient,
  connection: {
    secretArn: "secret-arn", // Required
    resourceArn: "db-resource-arn", // Required
    database: "db-name",
    region: "eu-west-2"
  }
});

Nested tables support

Note - this significantly increases the data required back from the RDS data api.

knex()
  .doSomething()
  .options({ nestTables: true });

Credits

Built by the team at Skyhook and provided under an MIT license.

About

Knex RDS Data API Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages