| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Database.Bolty.Plan
Description
Typed plan and profile trees from EXPLAIN/PROFILE queries.
Synopsis
- data PlanNode = PlanNode {
- pnOperatorType :: !Text
- pnArguments :: !(HashMap Text Ps)
- pnIdentifiers :: !(Vector Text)
- pnEstimatedRows :: !Double
- pnChildren :: !(Vector PlanNode)
- data ProfileNode = ProfileNode {
- prOperatorType :: !Text
- prArguments :: !(HashMap Text Ps)
- prIdentifiers :: !(Vector Text)
- prEstimatedRows :: !Double
- prDbHits :: !Int64
- prRows :: !Int64
- prPageCacheHits :: !Int64
- prPageCacheMisses :: !Int64
- prTime :: !Int64
- prChildren :: !(Vector ProfileNode)
- parsePlan :: Maybe Ps -> Maybe PlanNode
- parseProfile :: Maybe Ps -> Maybe ProfileNode
Documentation
A node in the query execution plan tree (from EXPLAIN).
Constructors
| PlanNode | |
Fields
| |
Instances
data ProfileNode Source #
A node in the query profile tree (from PROFILE).
Extends PlanNode with actual execution statistics.
Constructors
| ProfileNode | |
Fields
| |
Instances
| Show ProfileNode Source # | |
Defined in Database.Bolty.Plan Methods showsPrec :: Int -> ProfileNode -> ShowS # show :: ProfileNode -> String # showList :: [ProfileNode] -> ShowS # | |
| Eq ProfileNode Source # | |
Defined in Database.Bolty.Plan | |
parsePlan :: Maybe Ps -> Maybe PlanNode Source #
Parse the raw plan field from PULL SUCCESS metadata into a typed PlanNode tree.
parseProfile :: Maybe Ps -> Maybe ProfileNode Source #
Parse the raw profile field from PULL SUCCESS metadata into a typed ProfileNode tree.