module Database.Bolty.Logging
( QueryLog(..)
) where
import Data.Int (Int64)
import Data.Kind (Type)
import qualified Data.HashMap.Lazy as H
import qualified Data.Text as T
import Data.PackStream.Ps (Ps)
type QueryLog :: Type
data QueryLog = QueryLog
{ QueryLog -> Text
qlCypher :: !T.Text
, QueryLog -> HashMap Text Ps
qlParameters :: !(H.HashMap T.Text Ps)
, QueryLog -> Int
qlRowCount :: !Int
, QueryLog -> Int64
qlServerFirst :: !Int64
, QueryLog -> Int64
qlServerLast :: !Int64
, QueryLog -> Double
qlClientTime :: !Double
}
deriving stock (Int -> QueryLog -> ShowS
[QueryLog] -> ShowS
QueryLog -> String
(Int -> QueryLog -> ShowS)
-> (QueryLog -> String) -> ([QueryLog] -> ShowS) -> Show QueryLog
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QueryLog -> ShowS
showsPrec :: Int -> QueryLog -> ShowS
$cshow :: QueryLog -> String
show :: QueryLog -> String
$cshowList :: [QueryLog] -> ShowS
showList :: [QueryLog] -> ShowS
Show)