1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat: option to insert table rows

This commit is contained in:
2020-08-12 18:12:30 +02:00
parent 128a6cd9e8
commit 2f1dfdc654
8 changed files with 356 additions and 7 deletions

View File

@ -44,4 +44,14 @@ export default (connections) => {
return { status: 'error', response: err.toString() };
}
});
ipcMain.handle('insertTableRows', async (event, params) => {
try {
await Tables.insertTableRows(connections[params.uid], params);
return { status: 'success' };
}
catch (err) {
return { status: 'error', response: err.toString() };
}
});
};