hs-rqlite-0.1.1.0: A Haskell client for RQlite

Safe HaskellNone
LanguageHaskell2010

Rqlite

Synopsis

Documentation

data PostResult Source #

Instances
Read PostResult Source # 
Instance details

Defined in Rqlite

Show PostResult Source # 
Instance details

Defined in Rqlite

Generic PostResult Source # 
Instance details

Defined in Rqlite

Associated Types

type Rep PostResult :: Type -> Type #

FromJSON PostResult Source # 
Instance details

Defined in Rqlite

type Rep PostResult Source # 
Instance details

Defined in Rqlite

type Rep PostResult = D1 (MetaData "PostResult" "Rqlite" "hs-rqlite-0.1.1.0-6DBroKBrSECCqaUMV2xwt6" False) (C1 (MetaCons "PostResult" PrefixI True) (S1 (MetaSel (Just "last_insert_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :+: (C1 (MetaCons "EmptyPostResult" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PostError" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))

postQuery :: Bool -> String -> String -> IO PostResult Source #

This can be used to insert, create, delete a table..

data GetResult a Source #

Constructors

GetResult [a] 
GetError String 
Instances
Read a => Read (GetResult a) Source # 
Instance details

Defined in Rqlite

Show a => Show (GetResult a) Source # 
Instance details

Defined in Rqlite

Generic (GetResult a) Source # 
Instance details

Defined in Rqlite

Associated Types

type Rep (GetResult a) :: Type -> Type #

Methods

from :: GetResult a -> Rep (GetResult a) x #

to :: Rep (GetResult a) x -> GetResult a #

FromJSON a => FromJSON (GetResult a) Source # 
Instance details

Defined in Rqlite

type Rep (GetResult a) Source # 
Instance details

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 Level Source #

Constructors

None 
Weak 
Strong 
Instances
Eq Level Source # 
Instance details

Defined in Rqlite

Methods

(==) :: Level -> Level -> Bool #

(/=) :: Level -> Level -> Bool #

Show Level Source # 
Instance details

Defined in Rqlite

Methods

showsPrec :: Int -> Level -> ShowS #

show :: Level -> String #

showList :: [Level] -> ShowS #

Generic Level Source # 
Instance details

Defined in Rqlite

Associated Types

type Rep Level :: Type -> Type #

Methods

from :: Level -> Rep Level x #

to :: Rep Level x -> Level #

type Rep Level Source # 
Instance details

Defined in Rqlite

type Rep Level = D1 (MetaData "Level" "Rqlite" "hs-rqlite-0.1.1.0-6DBroKBrSECCqaUMV2xwt6" False) (C1 (MetaCons "None" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Weak" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Strong" PrefixI False) (U1 :: Type -> Type)))