Open caiulucas opened 2 years ago
You use like a MVC app. In bridge.ts:
// ...
test: (e: string) => {
ipcRenderer.send('test', e)
}
in main.ts
import Knex from 'knex';
// ...
ipcMain.on('test', (_, e) => {
// Here you write your queries
})
How can I configure and use knex and sqlite in this boilerplate?