resolve-readmodel-postgresql-serverless

0.26.5 • Public • Published

resolve-readmodel-postgresql-serverless

npm version

A Read Model Adapter for AWS Aurora PostgreSQL serverless database via RDS Data API. The adapter provides a query API for projection and resolvers. This API is similar to the other reSolve adapters API, which means you can change a Read Model Adapter in the configuration file without changing the code.

Available Parameters

  • dbClusterOrInstanceArn - The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
  • awsSecretStoreArn - The name or ARN of the secret that enables access to the DB cluster.
  • databaseName - The name of the PostgreSQL schema.
  • tablePrefix - optional table prefix for read-models server by current adapter instance.
  • preferEventBusLedger - store ledger in event bus instead read-model database itself.
  • ...connectionSettings - see RDS Data Service API for more information.

Adapter interface is provided by resolve-readmodel-base package.

Usage

import createAdapter from 'resolve-readmodel-postgresql-serverless'

const adapter = createAdapter({
  databaseName,
  ...connectionSettings
})

Package Sidebar

Install

npm i resolve-readmodel-postgresql-serverless

Weekly Downloads

64

Version

0.26.5

License

MIT

Unpacked Size

560 kB

Total Files

202

Last publish

Collaborators

  • resolve-admin
  • reimagined-admin
  • vladihost
  • lykoi18