venice-knex-snowflake-dialect
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

venice-knex-snowflake-dialect

knex.js dialect for the Snowflake data warehouse.

As of release 0.2.x, the connect and raw query methods have been tested, along with schema migrations.

Installation

npm install venice-knex-snowflake-dialect

Usage

Sample initialization:

import * as knex from "knex";
import { SnowflakeDialect } from "knex-snowflake-dialect";

export const Snowflake = knex({
  client: SnowflakeDialect,
  debug: true,
  connection: "snowflake://myuser:mypassword@myaccount.myregion.snowflakecomputing.com/mydb?warehouse=MY_WAREHOUSE",
  pool: {
    min: 1,
    max: 1
  }
});

The configuration could alternatively break out the connection parameters as separate keys, per the snowflake-sdk "Establishing a Connection" documentation.

Readme

Keywords

Package Sidebar

Install

npm i venice-knex-snowflake-dialect

Weekly Downloads

12

Version

1.0.10

License

MIT

Unpacked Size

466 kB

Total Files

74

Last publish

Collaborators

  • venice-music-engineer