Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data StatsType
- data TrackingQueryStats backend = TrackingQueryStats {
- _trackingQueryStats_tables :: Map (SpecTableName, StatsType) (QueryStats backend)
- _trackingQueryStats_hooks :: QueryStats backend
- totalQueryStats :: HasBackendQueryStats backend => TrackingQueryStats backend -> QueryStats backend
Documentation
data TrackingQueryStats backend #
Used for tracking per-table and hook query statistics.
TrackingQueryStats | |
|
Instances
HasBackendQueryStats backend => Monoid (TrackingQueryStats backend) # | |
Defined in Napkin.Types.TrackingQueryStats mempty :: TrackingQueryStats backend # mappend :: TrackingQueryStats backend -> TrackingQueryStats backend -> TrackingQueryStats backend # mconcat :: [TrackingQueryStats backend] -> TrackingQueryStats backend # | |
HasBackendQueryStats backend => Semigroup (TrackingQueryStats backend) # | |
Defined in Napkin.Types.TrackingQueryStats (<>) :: TrackingQueryStats backend -> TrackingQueryStats backend -> TrackingQueryStats backend # sconcat :: NonEmpty (TrackingQueryStats backend) -> TrackingQueryStats backend # stimes :: Integral b => b -> TrackingQueryStats backend -> TrackingQueryStats backend # |
totalQueryStats :: HasBackendQueryStats backend => TrackingQueryStats backend -> QueryStats backend #