Skip to content

oehlrich9/knex-firebird-dialect

 
 

Repository files navigation

👾 knex-firebird-dialect

codecov

This library serves as dialect (client) for Knex.js (A SQL query builder).

Purpose of doing is to replace old unmaintained libraries, this one is based on igorklopov/firebird-knex. Under the hood there is a Firebird driver for Node.JS.

Show some love and ⭐️ this project!

🚀 Usage

Start with installing the package with your favorite package manager.

yarn add knex-firebird-dialect

or

npm install knex-firebird-dialect

Snippet below shows basic setup.

import knexLib from "knex";
import knexFirebirdDialect from "knex-firebird-dialect";

const knexConfig = {
  client: knexFirebirdDialect,
  connection: {
    host: "127.0.0.1",
    port: 3050,
    user: "SYSDBA",
    password: "masterkey",
    database: '/tmp/database.fdb',
    lowercase_keys: true,
  },
  createDatabaseIfNotExists: true,
  debug: false,
};

Notice: if you using CommonJS require, do not forget to use the default import. const knexFirebirdDialect = require("knex-firebird-dialect").default;

For more look at the tests folder.

About

Firebird dialect Knex.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%