mirror of
https://github.com/BradNut/weddingsite
synced 2025-09-08 17:40:36 +00:00
10 lines
272 B
JavaScript
10 lines
272 B
JavaScript
import knex from 'knex';
|
|
import configs from '../knexfile';
|
|
|
|
async function connectDb() {
|
|
// check if we have a connection to the database or if it's currently
|
|
// connecting or disconnecting (readyState 1, 2 and 3)
|
|
return knex(configs);
|
|
}
|
|
|
|
export default connectDb;
|