2.0.0 • Published 6 years ago
knex-mariadb v2.0.0
knex-mariadb
MariaDB Client for Knex.js
Install
npm i --save-dev knex-mariadbknex-mariadb has peer dependencies on knex and mariadb, please make sure that they are installed as well.
Usage
knex-mariadb should be compatible with mysql and mysql2 knex clients, see this page for connection options.
Note that you cannot pass client: 'mariadb' to Knex because this method can be used only with the "official" clients.
You should use something like this instead:
const mdb = require('knex-mariadb');
const knex = require('knex')({
client: mdb,
// Other options go here
});Notes:
knex-mariadb 1.x is for knex up to 0.18.4
knex-mariadb 2.x is for knex 0.19+