You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
436 B

/**
* Changing the Database Provider
* This design allows for easy swapping of different database implementations.
*/
// import InMemory from '~/services/database/inmemory';
import LowDb from '~/services/database/lowdb';
const provider = new LowDb();
provider.connect().catch((err) => {
console.error(err);
process.exit(1);
});
// TODO: check if old config exists and tell user about migration path
export default provider;