2020-09-25 12:39:58 +02:00
|
|
|
'use strict';
|
|
|
|
import { ipcRenderer } from 'electron';
|
|
|
|
|
|
|
|
export default class {
|
|
|
|
static createDatabase (params) {
|
|
|
|
return ipcRenderer.invoke('create-database', params);
|
|
|
|
}
|
|
|
|
|
2020-10-03 12:11:42 +02:00
|
|
|
static updateDatabase (params) {
|
|
|
|
return ipcRenderer.invoke('update-database', params);
|
|
|
|
}
|
|
|
|
|
|
|
|
static getDatabaseCollation (params) {
|
|
|
|
return ipcRenderer.invoke('get-database-collation', params);
|
|
|
|
}
|
|
|
|
|
2020-10-01 15:08:35 +02:00
|
|
|
static deleteDatabase (params) {
|
|
|
|
return ipcRenderer.invoke('delete-database', params);
|
|
|
|
}
|
|
|
|
|
2021-01-23 15:50:21 +01:00
|
|
|
static getStructure (params) {
|
|
|
|
return ipcRenderer.invoke('get-structure', params);
|
2020-09-25 12:39:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static getCollations (uid) {
|
|
|
|
return ipcRenderer.invoke('get-collations', uid);
|
|
|
|
}
|
|
|
|
|
|
|
|
static getVariables (uid) {
|
|
|
|
return ipcRenderer.invoke('get-variables', uid);
|
|
|
|
}
|
|
|
|
|
2020-11-16 17:16:39 +01:00
|
|
|
static getEngines (uid) {
|
|
|
|
return ipcRenderer.invoke('get-engines', uid);
|
|
|
|
}
|
|
|
|
|
2020-09-29 16:43:20 +02:00
|
|
|
static useSchema (params) {
|
|
|
|
return ipcRenderer.invoke('use-schema', params);
|
|
|
|
}
|
|
|
|
|
2020-09-25 12:39:58 +02:00
|
|
|
static rawQuery (params) {
|
|
|
|
return ipcRenderer.invoke('raw-query', params);
|
|
|
|
}
|
|
|
|
}
|