Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SqlRead b m a where
- RunQuery :: Query -> SqlRead b m [Map Text Value]
- CheckTableExists :: Ref Table -> SqlRead b m Bool
- GetRelationSchema :: Relation -> SqlRead b m [BackendSchemaField b]
- getRelationSchema :: forall b r. MemberWithError (SqlRead b) r => Relation -> Sem r [BackendSchemaField b]
- checkTableExists :: forall b r. MemberWithError (SqlRead b) r => Ref Table -> Sem r Bool
- runQuery :: forall b r. MemberWithError (SqlRead b) r => Query -> Sem r [Map Text Value]
- runQuerySingleAnswer :: forall b a r. (Val a, Member (SqlRead b) r) => Query -> Sem r (Maybe a)
Documentation
RunQuery :: Query -> SqlRead b m [Map Text Value] | |
CheckTableExists :: Ref Table -> SqlRead b m Bool | |
GetRelationSchema :: Relation -> SqlRead b m [BackendSchemaField b] |
Instances
(IsRenderable SExp b, IsRenderable Query b) => ToDumpItem (b :: k) (SqlRead b :: (Type -> Type) -> Type -> Type) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram | |
GShow (SqlRead b m :: Type -> Type) # | |
Defined in Napkin.Run.Effects.Languages.SqlRead gshowsPrec :: forall (a :: k). Int -> SqlRead b m a -> ShowS # | |
Eq (SqlRead b m a) # | |
Show (SqlRead b m a) # | |
getRelationSchema :: forall b r. MemberWithError (SqlRead b) r => Relation -> Sem r [BackendSchemaField b] #
checkTableExists :: forall b r. MemberWithError (SqlRead b) r => Ref Table -> Sem r Bool #