Rqlite dialect for knex
First install knex and knex-rqlite: npm install knex rqlite-js knex-rqlite
Then to use the driver like this:
import Knex from "knex";
import { RqliteDialect, typeConfig } from "knex-rqlite";
const knex = Knex({
client: RqliteDialect,
connection: typeConfig({
host: "localhost",
port: 4001,
}),
});
A special thanks goes to the team @redaxle, which implemented the compatibility between knex-rqlite and knex 2.0 (#17)!
- This knex dialect doesn't support transactions yet
- Look into TODO.md to find a list of coming features
The tests can be run with ./scripts/test.js
This requires a running rqlite server on port 4001 and will drop&change the table rqliteDialect-e2e
./scripts/build