2020-06-15 18:23:51 +02:00
|
|
|
'use strict';
|
|
|
|
import { ipcRenderer } from 'electron';
|
|
|
|
|
|
|
|
export default class {
|
|
|
|
static getTableColumns (params) {
|
2020-08-18 18:03:59 +02:00
|
|
|
return ipcRenderer.invoke('get-table-columns', params);
|
2020-06-15 18:23:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static getTableData (params) {
|
2020-08-18 18:03:59 +02:00
|
|
|
return ipcRenderer.invoke('get-table-data', params);
|
2020-06-15 18:23:51 +02:00
|
|
|
}
|
2020-06-27 15:14:08 +02:00
|
|
|
|
2020-11-20 17:24:02 +01:00
|
|
|
static getTableIndexes (params) {
|
|
|
|
return ipcRenderer.invoke('get-table-indexes', params);
|
|
|
|
}
|
|
|
|
|
2020-08-14 18:07:29 +02:00
|
|
|
static getKeyUsage (params) {
|
|
|
|
return ipcRenderer.invoke('get-key-usage', params);
|
|
|
|
}
|
|
|
|
|
2020-06-27 15:14:08 +02:00
|
|
|
static updateTableCell (params) {
|
2020-08-18 18:03:59 +02:00
|
|
|
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) {
|
2020-08-18 18:03:59 +02:00
|
|
|
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) {
|
2020-08-18 18:03:59 +02:00
|
|
|
return ipcRenderer.invoke('insert-table-rows', params);
|
2020-08-12 18:12:30 +02:00
|
|
|
}
|
2020-08-17 15:10:19 +02:00
|
|
|
|
2021-02-13 18:45:16 +01:00
|
|
|
static insertTableFakeRows (params) {
|
|
|
|
return ipcRenderer.invoke('insert-table-fake-rows', params);
|
|
|
|
}
|
|
|
|
|
2020-08-17 15:10:19 +02:00
|
|
|
static getForeignList (params) {
|
|
|
|
return ipcRenderer.invoke('get-foreign-list', params);
|
|
|
|
}
|
2020-11-13 12:39:40 +01:00
|
|
|
|
2020-12-03 13:00:54 +01:00
|
|
|
static createTable (params) {
|
|
|
|
return ipcRenderer.invoke('create-table', params);
|
|
|
|
}
|
|
|
|
|
2020-11-13 12:39:40 +01:00
|
|
|
static alterTable (params) {
|
|
|
|
return ipcRenderer.invoke('alter-table', params);
|
|
|
|
}
|
2020-12-03 16:15:10 +01:00
|
|
|
|
|
|
|
static truncateTable (params) {
|
|
|
|
return ipcRenderer.invoke('truncate-table', params);
|
|
|
|
}
|
|
|
|
|
|
|
|
static dropTable (params) {
|
|
|
|
return ipcRenderer.invoke('drop-table', params);
|
|
|
|
}
|
2020-06-15 18:23:51 +02:00
|
|
|
}
|