Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SqlRead m a where
- getRelationSchema :: forall r. MemberWithError SqlRead r => Relation -> Sem r (Fields Field)
- checkTableExists :: forall r. MemberWithError SqlRead r => Ref Table -> Sem r Bool
- runQuery :: forall r. MemberWithError SqlRead r => Query -> Sem r [Map Text Value]
- runQuerySingleAnswer :: forall a r. (Val a, Member SqlRead r) => Query -> Sem r (Maybe a)
Documentation
RunQuery :: Query -> SqlRead m [Map Text Value] | |
CheckTableExists :: Ref Table -> SqlRead m Bool | |
GetRelationSchema :: Relation -> SqlRead m (Fields Field) |
Instances
getRelationSchema :: forall r. MemberWithError SqlRead r => Relation -> Sem r (Fields Field) #
checkTableExists :: forall r. MemberWithError SqlRead r => Ref Table -> Sem r Bool #