Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data PostResult
- = PostResult { }
- | EmptyPostResult
- | PostError Text
- postQueries :: Bool -> String -> [String] -> IO [PostResult]
- postQuery :: Bool -> String -> String -> IO PostResult
- data GetResult a
- getQuery :: forall a. FromJSON a => Maybe Level -> String -> Bool -> String -> IO (GetResult a)
- data Level
- data RQliteError
- reify :: IO (Result (Response String)) -> IO String
Documentation
data PostResult Source #
Instances
postQueries :: Bool -> String -> [String] -> IO [PostResult] Source #
postQuery :: Bool -> String -> String -> IO PostResult Source #
This can be used to insert, create, delete a table..
Instances
Read a => Read (GetResult a) Source # | |
Show a => Show (GetResult a) Source # | |
Generic (GetResult a) Source # | |
FromJSON a => FromJSON (GetResult a) Source # | |
type Rep (GetResult a) Source # | |
Defined in Rqlite type Rep (GetResult a) = D1 (MetaData "GetResult" "Rqlite" "hs-rqlite-0.1.1.0-6DBroKBrSECCqaUMV2xwt6" False) (C1 (MetaCons "GetResult" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [a])) :+: C1 (MetaCons "GetError" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String))) |
getQuery :: forall a. FromJSON a => Maybe Level -> String -> Bool -> String -> IO (GetResult a) Source #
This can be used to query a table.
data RQliteError Source #
Instances
Show RQliteError Source # | |
Defined in Rqlite showsPrec :: Int -> RQliteError -> ShowS # show :: RQliteError -> String # showList :: [RQliteError] -> ShowS # | |
Exception RQliteError Source # | |
Defined in Rqlite |