Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype LoadQueryError = LoadQueryError Text
- data LoadQuery m a where
- LoadQueryFromFile :: FilePath -> SqlTemplateVariables -> LoadQuery m (Either LoadQueryError Text)
- LoadQueryInline :: SourceLocation -> Text -> SqlTemplateVariables -> LoadQuery m (Either LoadQueryError Text)
- loadQueryInline :: forall r. MemberWithError LoadQuery r => SourceLocation -> Text -> SqlTemplateVariables -> Sem r (Either LoadQueryError Text)
- loadQueryFromFile :: forall r. MemberWithError LoadQuery r => FilePath -> SqlTemplateVariables -> Sem r (Either LoadQueryError Text)
- loadSqlFile :: Members [SqlParse, LoadQuery, FatalError] r => FilePath -> SqlTemplateVariables -> Sem r Query
- loadInlineSql :: Members [SqlParse, LoadQuery, FatalError] r => Text -> SqlTemplateVariables -> Sem r Query
- data LoadQueryCacheKey
Documentation
newtype LoadQueryError #
Instances
Eq LoadQueryError # | |
Defined in Napkin.Run.Effects.Languages.LoadQuery (==) :: LoadQueryError -> LoadQueryError -> Bool # (/=) :: LoadQueryError -> LoadQueryError -> Bool # | |
Show LoadQueryError # | |
Defined in Napkin.Run.Effects.Languages.LoadQuery showsPrec :: Int -> LoadQueryError -> ShowS # show :: LoadQueryError -> String # showList :: [LoadQueryError] -> ShowS # |
Effects that deal with local files
LoadQueryFromFile :: FilePath -> SqlTemplateVariables -> LoadQuery m (Either LoadQueryError Text) | |
LoadQueryInline :: SourceLocation -> Text -> SqlTemplateVariables -> LoadQuery m (Either LoadQueryError Text) |
Instances
CachableEffect (LoadQuery :: k -> Type -> Type) LoadQueryCacheKey # | |
Defined in Napkin.Run.Effects.Languages.LoadQuery | |
Eq (LoadQuery m a) # | |
Ord (LoadQuery m a) # | |
Defined in Napkin.Run.Effects.Languages.LoadQuery compare :: LoadQuery m a -> LoadQuery m a -> Ordering # (<) :: LoadQuery m a -> LoadQuery m a -> Bool # (<=) :: LoadQuery m a -> LoadQuery m a -> Bool # (>) :: LoadQuery m a -> LoadQuery m a -> Bool # (>=) :: LoadQuery m a -> LoadQuery m a -> Bool # |
loadQueryInline :: forall r. MemberWithError LoadQuery r => SourceLocation -> Text -> SqlTemplateVariables -> Sem r (Either LoadQueryError Text) #
loadQueryFromFile :: forall r. MemberWithError LoadQuery r => FilePath -> SqlTemplateVariables -> Sem r (Either LoadQueryError Text) #
loadSqlFile :: Members [SqlParse, LoadQuery, FatalError] r => FilePath -> SqlTemplateVariables -> Sem r Query #
loadInlineSql :: Members [SqlParse, LoadQuery, FatalError] r => Text -> SqlTemplateVariables -> Sem r Query #
data LoadQueryCacheKey #
Instances
CachableEffect (LoadQuery :: k -> Type -> Type) LoadQueryCacheKey # | |
Defined in Napkin.Run.Effects.Languages.LoadQuery |