napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Types.TrackingQueryStats

Synopsis

Documentation

data TrackingQueryStats (backend :: k) #

Used for tracking per-table and hook query statistics.

Constructors

TrackingQueryStats 

Fields

Instances

Instances details
HasBackendQueryStats backend => Monoid (TrackingQueryStats backend) # 
Instance details

Defined in Napkin.Types.TrackingQueryStats

HasBackendQueryStats backend => Semigroup (TrackingQueryStats backend) # 
Instance details

Defined in Napkin.Types.TrackingQueryStats

Methods

(<>) :: TrackingQueryStats backend -> TrackingQueryStats backend -> TrackingQueryStats backend #

sconcat :: NonEmpty (TrackingQueryStats backend) -> TrackingQueryStats backend #

stimes :: Integral b => b -> TrackingQueryStats backend -> TrackingQueryStats backend #

Generic (TrackingQueryStats backend) # 
Instance details

Defined in Napkin.Types.TrackingQueryStats

Associated Types

type Rep (TrackingQueryStats backend) 
Instance details

Defined in Napkin.Types.TrackingQueryStats

type Rep (TrackingQueryStats backend) = D1 ('MetaData "TrackingQueryStats" "Napkin.Types.TrackingQueryStats" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "TrackingQueryStats" 'PrefixI 'True) (S1 ('MetaSel ('Just "tables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (SpecTableName, StatsType) (QueryStats backend))) :*: S1 ('MetaSel ('Just "hooks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (QueryStats backend))))

Methods

from :: TrackingQueryStats backend -> Rep (TrackingQueryStats backend) x #

to :: Rep (TrackingQueryStats backend) x -> TrackingQueryStats backend #

type Rep (TrackingQueryStats backend) # 
Instance details

Defined in Napkin.Types.TrackingQueryStats

type Rep (TrackingQueryStats backend) = D1 ('MetaData "TrackingQueryStats" "Napkin.Types.TrackingQueryStats" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "TrackingQueryStats" 'PrefixI 'True) (S1 ('MetaSel ('Just "tables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (SpecTableName, StatsType) (QueryStats backend))) :*: S1 ('MetaSel ('Just "hooks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (QueryStats backend))))

totalQueryStats :: forall {k} (backend :: k). HasBackendQueryStats backend => TrackingQueryStats backend -> QueryStats backend #