@dictadata/redshift-junction

Storage junction for Amazon Redshift database access.


Keywords
storage, junction, redshift
License
MIT
Install
npm install @dictadata/redshift-junction@1.7.2

Documentation

@dictadata/redshift-junction

dictadata storage-junction plug-in for Amazon Redshift database access using ODBC.

Installation

Requires Redshift ODBC drivers.

Requires node-gyp and a C++ compiler to build the NPM odbc package.

Storage-Junction Plugin

Register the junction when initializing the app.

const storage = require("@dictadata/storage-junctions");

const RedshiftJunction = require("@dictadata/redshift-junction");
storage.use("redshift", RedshiftJunction);

Then a junction can be created elsewhere in the app using a SMT.

const storage = require("@dictadata/storage-junctions");

var junction = await storage.activate({
  smt: {
    model:"redshift",
    locus: "DSN=xyz",
    schema: "table",
    key: "*"
  }
});