Sqlite and knex usage
Opened this issue · 1 comments
caiulucas commented
How can I configure and use knex and sqlite in this boilerplate?
brennomeneses commented
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
})