1
0
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:
2023-06-07 21:30:22 +02:00
parent ea376f5ba7
commit be7643bd31
9 changed files with 164 additions and 20 deletions

2
frontend/wailsjs/go/app/App.d.ts generated vendored
View File

@ -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>;

View File

@ -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;