TinyBase logoTinyBase

StoreStats

The StoreStats type describes a set of statistics about the Store, and is used for debugging purposes.

{
  totalTables: number;
  totalRows: number;
  totalCells: number;
  totalValues: number;
  jsonLength: number;
  detail?: StoreStatsDetail;
}
TypeDescription
totalTablesnumber

The number of Table objects in the Store.

totalRowsnumber

The number of Row objects in the Store, across all Table objects.

totalCellsnumber

The number of Cell objects in the Store, across all Row objects, across all Table objects.

totalValuesnumber

The number of Value objects in the Store, since v3.0.

jsonLengthnumber

The string length of the Store when serialized to JSON.

detail?StoreStatsDetail

Additional detailed statistics about the Store if the detail flag is specified in the getStoreStats method.

A StoreStats object is returned from the getStoreStats method.

Since

v2.2.0