Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data StatsType
- data TrackingQueryStats = TrackingQueryStats {}
- queryStatsForTable :: Ref Table -> TrackingQueryStats -> (Maybe QueryStats, Maybe QueryStats)
- totalQueryStatsForTable :: Ref Table -> TrackingQueryStats -> QueryStats
- totalQueryStats :: TrackingQueryStats -> QueryStats
- data QueryStats = QueryStats {
- _queryStats_rowsAffected :: !(Maybe Int64)
- _queryStats_bytesAffected :: !(Maybe Int64)
- _queryStats_cost :: !(Maybe Int64)
- _queryStats_time :: !(Maybe Int64)
- prettyQueryStats :: QueryStats -> String
- prettyBytes :: Int64 -> String
Documentation
data TrackingQueryStats #
Used for tracking per-table and hook query statistics.
TrackingQueryStats | |
|
Instances
Eq TrackingQueryStats # | |
Defined in Napkin.Types.QueryStats (==) :: TrackingQueryStats -> TrackingQueryStats -> Bool # (/=) :: TrackingQueryStats -> TrackingQueryStats -> Bool # | |
Show TrackingQueryStats # | |
Defined in Napkin.Types.QueryStats showsPrec :: Int -> TrackingQueryStats -> ShowS # show :: TrackingQueryStats -> String # showList :: [TrackingQueryStats] -> ShowS # | |
Semigroup TrackingQueryStats # | |
Defined in Napkin.Types.QueryStats (<>) :: TrackingQueryStats -> TrackingQueryStats -> TrackingQueryStats # sconcat :: NonEmpty TrackingQueryStats -> TrackingQueryStats # stimes :: Integral b => b -> TrackingQueryStats -> TrackingQueryStats # | |
Monoid TrackingQueryStats # | |
Defined in Napkin.Types.QueryStats |
queryStatsForTable :: Ref Table -> TrackingQueryStats -> (Maybe QueryStats, Maybe QueryStats) #
returns QueryStats, for the table creation spec and also for the spec's tables
data QueryStats #
Used for aggregate statistics gathered from running queries.
QueryStats | |
|
Instances
Eq QueryStats # | |
Defined in Napkin.Types.QueryStats (==) :: QueryStats -> QueryStats -> Bool # (/=) :: QueryStats -> QueryStats -> Bool # | |
Show QueryStats # | |
Defined in Napkin.Types.QueryStats showsPrec :: Int -> QueryStats -> ShowS # show :: QueryStats -> String # showList :: [QueryStats] -> ShowS # | |
Semigroup QueryStats # | |
Defined in Napkin.Types.QueryStats (<>) :: QueryStats -> QueryStats -> QueryStats # sconcat :: NonEmpty QueryStats -> QueryStats # stimes :: Integral b => b -> QueryStats -> QueryStats # | |
Monoid QueryStats # | |
Defined in Napkin.Types.QueryStats mempty :: QueryStats # mappend :: QueryStats -> QueryStats -> QueryStats # mconcat :: [QueryStats] -> QueryStats # |
prettyQueryStats :: QueryStats -> String #
prettyBytes :: Int64 -> String #