mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-15 04:44:05 +00:00
Display sb stats generated by dbStats
command (#15)
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
@ -35,7 +35,7 @@ export function OpenCollection(arg1:string,arg2:string,arg3:string):Promise<prim
|
||||
|
||||
export function OpenConnection(arg1:string):Promise<Array<string>>;
|
||||
|
||||
export function OpenDatabase(arg1:string,arg2:string):Promise<Array<string>>;
|
||||
export function OpenDatabase(arg1:string,arg2:string):Promise<app.DatabaseInfo>;
|
||||
|
||||
export function PerformDump(arg1:string):Promise<boolean>;
|
||||
|
||||
|
14
frontend/wailsjs/go/models.ts
generated
14
frontend/wailsjs/go/models.ts
generated
@ -1,5 +1,19 @@
|
||||
export namespace app {
|
||||
|
||||
export class DatabaseInfo {
|
||||
collections: string[];
|
||||
stats: {[key: string]: any};
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new DatabaseInfo(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.collections = source["collections"];
|
||||
this.stats = source["stats"];
|
||||
}
|
||||
}
|
||||
export class EnvironmentInfo {
|
||||
arch: string;
|
||||
buildType: string;
|
||||
|
Reference in New Issue
Block a user