Safe Haskell | None |
---|---|
Language | Haskell2010 |
Napkin.Run.Effects.Languages.SqlRead
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
Constructors
RunQuery :: Query -> SqlRead m [Map Text Value] | |
CheckTableExists :: Ref Table -> SqlRead m Bool | |
GetRelationSchema :: Relation -> SqlRead m (Fields Field) |
Instances
ToDumpItem (SqlRead :: (Type -> Type) -> Type -> Type) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram | |
GShow (SqlRead a :: Type -> Type) # | |
Defined in Napkin.Run.Effects.Languages.SqlRead Methods gshowsPrec :: forall (a0 :: k). Int -> SqlRead a a0 -> ShowS # | |
Eq (SqlRead a b) # | |
Show (SqlRead a b) # | |
getRelationSchema :: forall r. MemberWithError SqlRead r => Relation -> Sem r (Fields Field) #
checkTableExists :: forall r. MemberWithError SqlRead r => Ref Table -> Sem r Bool #