Answer the question
In order to leave comments, you need to log in
Will a new database connection be created with every import?
There are 3 files:
// database.js
const db = require("knex")({
//...connection_info
})
module.exports = db
// index.js
const db = require("./database")
// action.js
const db = require("./database")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question