slate/node_common/database.js
2021-08-09 16:03:52 +01:00

10 lines
228 B
JavaScript

import * as Environment from "~/node_common/environment";
import configs from "~/knexfile";
import knex from "knex";
const envConfig = configs[Environment.NODE_ENV];
const Database = knex(envConfig);
export default Database;