https://github.com/beekeeper-studio/knex-snowflake-dialect
Knex dialect for snowflake
https://github.com/beekeeper-studio/knex-snowflake-dialect
Last synced: about 2 months ago
JSON representation
Knex dialect for snowflake
- Host: GitHub
- URL: https://github.com/beekeeper-studio/knex-snowflake-dialect
- Owner: beekeeper-studio
- License: mit
- Created: 2026-05-13T03:22:42.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-14T20:05:33.000Z (3 months ago)
- Last Synced: 2026-05-27T21:30:28.961Z (2 months ago)
- Language: TypeScript
- Size: 125 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NOTE
This code was forked from the folks over at `Deliverr, Inc`. The original license is in this repo.
# 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
```shell script
npm install knex-snowflake-dialect
```
## Usage
Sample initialization:
```javascript
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"](https://docs.snowflake.net/manuals/user-guide/nodejs-driver-use.html#establishing-a-connection)
documentation.