mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-19 06:14:04 +00:00
Display host stats
This commit is contained in:
2
frontend/wailsjs/go/app/App.d.ts
generated
vendored
2
frontend/wailsjs/go/app/App.d.ts
generated
vendored
@ -33,7 +33,7 @@ export function Menu():Promise<menu.Menu>;
|
||||
|
||||
export function OpenCollection(arg1:string,arg2:string,arg3:string):Promise<primitive.M>;
|
||||
|
||||
export function OpenConnection(arg1:string):Promise<Array<string>>;
|
||||
export function OpenConnection(arg1:string):Promise<app.HostInfo>;
|
||||
|
||||
export function OpenDatabase(arg1:string,arg2:string):Promise<app.DatabaseInfo>;
|
||||
|
||||
|
16
frontend/wailsjs/go/models.ts
generated
16
frontend/wailsjs/go/models.ts
generated
@ -44,6 +44,22 @@ export namespace app {
|
||||
this.downloadDirectory = source["downloadDirectory"];
|
||||
}
|
||||
}
|
||||
export class HostInfo {
|
||||
databases: string[];
|
||||
status: {[key: string]: any};
|
||||
systemInfo: {[key: string]: any};
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new HostInfo(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.databases = source["databases"];
|
||||
this.status = source["status"];
|
||||
this.systemInfo = source["systemInfo"];
|
||||
}
|
||||
}
|
||||
export class QueryResult {
|
||||
total: number;
|
||||
results: string[];
|
||||
|
Reference in New Issue
Block a user