antares/src/renderer/ipc-api/Tables.js

37 lines
892 B
JavaScript
Raw Normal View History

2020-06-15 18:23:51 +02:00
'use strict';
import { ipcRenderer } from 'electron';
export default class {
static getTableColumns (params) {
return ipcRenderer.invoke('get-table-columns', params);
2020-06-15 18:23:51 +02:00
}
static getTableData (params) {
return ipcRenderer.invoke('get-table-data', params);
2020-06-15 18:23:51 +02:00
}
2020-06-27 15:14:08 +02:00
static getKeyUsage (params) {
return ipcRenderer.invoke('get-key-usage', params);
}
2020-06-27 15:14:08 +02:00
static updateTableCell (params) {
return ipcRenderer.invoke('update-table-cell', params);
2020-06-27 15:14:08 +02:00
}
2020-07-23 19:10:14 +02:00
static deleteTableRows (params) {
return ipcRenderer.invoke('delete-table-rows', params);
2020-07-23 19:10:14 +02:00
}
2020-08-12 18:12:30 +02:00
static insertTableRows (params) {
return ipcRenderer.invoke('insert-table-rows', params);
2020-08-12 18:12:30 +02:00
}
static getForeignList (params) {
return ipcRenderer.invoke('get-foreign-list', params);
}
2020-11-13 12:39:40 +01:00
static alterTable (params) {
return ipcRenderer.invoke('alter-table', params);
}
2020-06-15 18:23:51 +02:00
}