Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data SqlStmtId = SqlStmtId {}
- data SqlStmt = SqlStmt SqlStmtId Text
- stmtId :: SqlStmt -> SqlStmtId
- stmtBody :: SqlStmt -> Text
- stmtIdType :: SqlStmt -> SqlStmtType
- stmtDesc :: SqlStmt -> Text
- newSqlStmtId :: ToSqlId a => SqlStmtType -> a -> SqlStmtId
- newSqlStmt :: ToSqlId a => SqlStmtType -> a -> Text -> Maybe SqlStmt
- sqlPrinter :: [SqlStmt] -> Text
- allowInUpgrade :: SqlStmt -> Bool
- stmtRequiresPermitDeletion :: SqlStmt -> Bool
- data SqlStmtType
- = SqlDropDatabase
- | SqlCreateDatabase
- | SqlPre
- | SqlPreInstall
- | SqlRevokePrivilege
- | SqlDropRole
- | SqlCreateRole
- | SqlAlterRole
- | SqlRoleMembership
- | SqlCreateSchema
- | SqlCreateDomain
- | SqlCreateType
- | SqlDropTableConstr
- | SqlDropDomainConstr
- | SqlDropSequence
- | SqlDropTableColumn
- | SqlDropTable
- | SqlDropFunction
- | SqlCreateSequence
- | SqlCreateTable
- | SqlAddColumn
- | SqlAlterTable
- | SqlDropColumnDefault
- | SqlAlterColumn
- | SqlAlterSequence
- | SqlDropDomain
- | SqlDropType
- | SqlCreateFunction
- | SqlInherit
- | SqlAddTableConstr
- | SqlCreatePrimaryKeyConstr
- | SqlCreateUniqueConstr
- | SqlCreateForeignKeyConstr
- | SqlCreateCheckConstr
- | SqlAddDefault
- | SqlCreateTrigger
- | SqlPriv
- | SqlComment
- | SqlUnclassified
- | SqlPostInstallAndUpgrade
- | SqlPostInstall
- toSqlCodeString :: Text -> Text
Documentation
stmtIdType :: SqlStmt -> SqlStmtType Source #
newSqlStmtId :: ToSqlId a => SqlStmtType -> a -> SqlStmtId Source #
newSqlStmt :: ToSqlId a => SqlStmtType -> a -> Text -> Maybe SqlStmt Source #
sqlPrinter :: [SqlStmt] -> Text Source #
allowInUpgrade :: SqlStmt -> Bool Source #
More like always perform unfiltered after delete
data SqlStmtType Source #
toSqlCodeString :: Text -> Text Source #