Skip to content
プロジェクト

Tomas2D/knex-firebird-dialect

GitHubで見る

Tomas2D/knex-firebird-dialect has 29 GitHub stars and 7 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-15 08:14 UTC. Last push 2026-10-26.

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

概要

Firebird dialect for Knex.js

データ

👾 knex-firebird-dialect

codecov

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

The purpose of doing this is to replace old unmaintained libraries; this one is based on igorklopov/firebird-knex. Under the hood, there is a node-firebird-driver-native. In case you can't use the node-firebird-driver-native package, stick to version 1.x of this package which works on top of node-firebird package.

Show some love and ⭐️ this project!

🚀 Usage

Start with installing the package with your favorite package manager.

yarn add knex-firebird-dialect node-firebird-driver-native

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,
  pingTimeout: 3000, // optional, max time (ms) to validate a pooled connection
  cancelTimeout: 5000, // optional, max time (ms) for a cancelled query to finish
  debug: false,
};

Long-running queries (including ones waiting on a lock) can be cancelled with Knex's timeout.

await knex.raw("EXECUTE PROCEDURE SLOW_ONE").timeout(30_000, { cancel: true });

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.