Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data TableKind
- data SqlRead b m a where
- getRelationSchema' :: forall b r. Member (SqlRead b) r => Ref Table -> Relation -> Sem r [BackendSchemaField b]
- getTableKind :: forall b r. Member (SqlRead b) r => Ref Table -> Sem r TableKind
- checkTableExists :: forall b r. Member (SqlRead b) r => Ref Table -> Sem r Bool
- runQuery :: forall b r. Member (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)
- getRelationSchema :: Members [SqlRead b, Input TemporaryTableName] r => Relation -> Sem r [BackendSchemaField b]
Documentation
Instances
RunQuery :: Query -> SqlRead b m [Map Text Value] | |
CheckTableExists :: Ref Table -> SqlRead b m Bool | |
GetTableKind :: Ref Table -> SqlRead b m TableKind | |
GetRelationSchema' :: Ref Table -> 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 # | |
Show (SqlRead b m a) # | |
Eq (SqlRead b m a) # | |
getRelationSchema' :: forall b r. Member (SqlRead b) r => Ref Table -> Relation -> Sem r [BackendSchemaField b] #
runQuerySingleAnswer :: forall b a r. (Val a, Member (SqlRead b) r) => Query -> Sem r (Maybe a) #
Run a query and pull out the first column from its first row. Meant for queries that return a single result.
getRelationSchema :: Members [SqlRead b, Input TemporaryTableName] r => Relation -> Sem r [BackendSchemaField b] #