electron-typescript-react
electron-typescript-react copied to clipboard
Sqlite and knex usage
How can I configure and use knex and sqlite in this boilerplate?
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
})