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

feat: create new tables

This commit is contained in:
2020-12-03 13:00:54 +01:00
parent f8cf90a89e
commit e6602d1bfa
11 changed files with 348 additions and 18 deletions

View File

@ -165,6 +165,16 @@ export default (connections) => {
}
});
ipcMain.handle('create-table', async (event, params) => {
try {
await connections[params.uid].createTable(params);
return { status: 'success' };
}
catch (err) {
return { status: 'error', response: err.toString() };
}
});
ipcMain.handle('alter-table', async (event, params) => {
try {
await connections[params.uid].alterTable(params);