slate/node_common/database.js

10 lines
224 B
JavaScript
Raw Normal View History

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