Package

pgstats.models

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

For storing snapshots of postgres index stats

exception DoesNotExist
exception MultipleObjectsReturned
class pgstats.models.JSONField(verbose_name=None, name=None, encoder=None, decoder=None, **kwargs)[source]

Creates a consistent import path for JSONField regardless of Django version.

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