napkin-0.5.9
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Napkin.Untyped.SqlFile

Description

 
Synopsis

Documentation

readLocalSql :: (MonadIO m, MustacheBackend b) => Maybe InterpreterInstance -> b -> FilePath -> SqlTemplateVariables -> m String #

Read local SQL file, apply template substitutions.

readLocalSql' :: (MonadIO m, MustacheBackend b) => Maybe InterpreterInstance -> b -> FilePath -> SqlTemplateVariables -> m (Either Text Text) #

Read local SQL file, apply template substitutions.

loadQueryFromSql :: (MonadIO m, ParseSQL b, MustacheBackend b) => Maybe InterpreterInstance -> b -> FilePath -> SqlTemplateVariables -> m Query #

Load a local SQL file as a Query object.