UNPKG

sql-fixtures

Version:

Populate a SQL database with fixture data

14 lines (10 loc) 266 B
/* * A helper function to determine if a knex client is connected to a sqlite database */ var _ = require("lodash"); module.exports = function isPostgres(knex) { if (!knex.client) { return false; } return _.includes(knex.client.dialect, "sqlite"); };