Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data SetupContext = SetupContext {}
- data SetupElement where
- SetupElement :: (ToSqlStmts a, Show b) => {..} -> SetupElement
- class Typeable a => ToSqlStmts a where
- data Setup = Setup {
- setupSchemas :: [SqlName]
- setupSchemaDirs :: Maybe [FilePath]
- setupRolePrefix :: Maybe Text
- setupPreCode :: Maybe Text
- setupPostCode :: Maybe Text
- setupSchemaData :: Maybe [Schema]
- setupRolePrefix' :: Setup -> Text
- data WithSchema a = WithSchema Schema a
- class WithName a where
- withoutSchema :: WithSchema a -> a
- selectTemplates :: (ToSqlCode a, WithName (WithSchema t)) => Maybe [a] -> [WithSchema t] -> [t]
- selectTemplate :: (ToSqlCode a1, WithName (WithSchema a)) => a1 -> [WithSchema a] -> a
- setupAllSchemas :: Setup -> [Schema]
- setupAllFunctionTemplates :: Setup -> [WithSchema FunctionTpl]
- setupAllTableTemplates :: Setup -> [WithSchema TableTpl]
- applyTpl :: Setup -> Setup
Documentation
data SetupElement where Source #
SetupElement :: (ToSqlStmts a, Show b) => {..} -> SetupElement | |
|
class Typeable a => ToSqlStmts a where Source #
toSqlStmts :: SetupContext -> a -> [Maybe SqlStmt] Source #
Setup
Setup | |
|
setupRolePrefix' :: Setup -> Text Source #
data WithSchema a Source #
Template handling and applyTemplate
Show a => Show (WithSchema a) Source # | |
WithName (WithSchema FunctionTpl) Source # | |
WithName (WithSchema TableTpl) Source # | |
withoutSchema :: WithSchema a -> a Source #
selectTemplates :: (ToSqlCode a, WithName (WithSchema t)) => Maybe [a] -> [WithSchema t] -> [t] Source #
selectTemplate :: (ToSqlCode a1, WithName (WithSchema a)) => a1 -> [WithSchema a] -> a Source #
setupAllSchemas :: Setup -> [Schema] Source #
setupAllTableTemplates :: Setup -> [WithSchema TableTpl] Source #