Package

pgstats.models

class pgstats.models.IndexStats(*args, **kwargs)[source]

For storing snapshots of postgres index stats

exception DoesNotExist
exception MultipleObjectsReturned
class pgstats.models.TableStats(*args, **kwargs)[source]

For storing snapshots of postgres table stats

exception DoesNotExist
exception MultipleObjectsReturned
pgstats.models.dict_fetchall(cursor)[source]

Returns all rows from a cursor as a dict