napkin-spec-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.Effects.Languages.LoadQuery

Synopsis

Documentation

data LoadQuery (m :: k) a where #

Effects that deal with local files

Instances

Instances details
CacheableEffect (LoadQuery :: k -> Type -> Type) LoadQueryCacheKey # 
Instance details

Defined in Napkin.Run.Effects.Languages.LoadQuery

Eq (LoadQuery m a) # 
Instance details

Defined in Napkin.Run.Effects.Languages.LoadQuery

Methods

(==) :: LoadQuery m a -> LoadQuery m a -> Bool #

(/=) :: LoadQuery m a -> LoadQuery m a -> Bool #

Ord (LoadQuery m a) # 
Instance details

Defined in Napkin.Run.Effects.Languages.LoadQuery

Methods

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 #

max :: LoadQuery m a -> LoadQuery m a -> LoadQuery m a #

min :: LoadQuery m a -> LoadQuery m a -> LoadQuery m a #

loadFile :: forall (r :: EffectRow) a. Members '[SqlParse :: (Type -> Type) -> Type -> Type, LoadQuery :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => (SourceLocation -> Text -> Sem r a) -> FilePath -> SqlTemplateVariables -> Sem r a #

loadInline :: forall (r :: EffectRow) a. Members '[SqlParse :: (Type -> Type) -> Type -> Type, LoadQuery :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => (SourceLocation -> Text -> Sem r a) -> Text -> SqlTemplateVariables -> Sem r a #

loadSqlFile :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, LoadQuery :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => FilePath -> SqlTemplateVariables -> Sem r Query #

loadSqlFiles :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, LoadQuery :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => NonEmpty FilePath -> SqlTemplateVariables -> Sem r (NonEmpty Query) #

loadInlineSql :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, LoadQuery :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => Text -> SqlTemplateVariables -> Sem r Query #

loadInlineStatement :: forall (r :: EffectRow) a. (Members '[SqlParse :: (Type -> Type) -> Type -> Type, LoadQuery :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r, Stateable a) => Text -> SqlTemplateVariables -> Sem r [a] #

loadStatementFile :: forall (r :: EffectRow) a. (Members '[SqlParse :: (Type -> Type) -> Type -> Type, LoadQuery :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r, Stateable a) => FilePath -> SqlTemplateVariables -> Sem r [a] #

data LoadQueryCacheKey #

Instances

Instances details
CacheableEffect (LoadQuery :: k -> Type -> Type) LoadQueryCacheKey # 
Instance details

Defined in Napkin.Run.Effects.Languages.LoadQuery