mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
feat(PostgreSQL): ability to switch the database, closes #432
This commit is contained in:
9
src/renderer/ipc-api/Databases.ts
Normal file
9
src/renderer/ipc-api/Databases.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ipcRenderer } from 'electron';
|
||||
import { unproxify } from '../libs/unproxify';
|
||||
import { IpcResponse } from 'common/interfaces/antares';
|
||||
|
||||
export default class {
|
||||
static getDatabases (params: string): Promise<IpcResponse> {
|
||||
return ipcRenderer.invoke('get-databases', unproxify(params));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user