Skip to content

DnAp/KnexClickhouseDialect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knex ClickHouse dialect

ClickHouse dialect for Knex.js

Install

npm install @dnap/knex-clickhouse-dialect

Usage

import knex from 'knex';
import clickhouse from '@dnap/knex-clickhouse-dialect';

export default knex({
    client: clickhouse,
    connection: () => {
        return 'clickhouse://login:password@localhost:8123/db_name';
    },
    // optional migrations config
    migrations: {
        directory: 'migrations_clickhouse',
        disableTransactions: true,
        disableMigrationsListValidation: true,
    },
});

About

knex.js dialect for ClickHouse

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published