Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Schema = Schema {
- schemaName :: SqlName
- schemaDescription :: Text
- schemaDependencies :: Maybe [SqlName]
- schemaFunctions :: Maybe [Function]
- schemaFunctionTemplates :: Maybe [FunctionTpl]
- schemaTables :: Maybe [Table]
- schemaTableTemplates :: Maybe [TableTpl]
- schemaRoles :: Maybe [Role]
- schemaSequences :: Maybe [Sequence]
- schemaPrivUsage :: Maybe [SqlName]
- schemaPrivSelectAll :: Maybe [SqlName]
- schemaPrivInsertAll :: Maybe [SqlName]
- schemaPrivUpdateAll :: Maybe [SqlName]
- schemaPrivDeleteAll :: Maybe [SqlName]
- schemaPrivSequenceAll :: Maybe [SqlName]
- schemaPrivExecuteAll :: Maybe [SqlName]
- schemaPrivAllAll :: Maybe [SqlName]
- schemaDomains :: Maybe [Domain]
- schemaTypes :: Maybe [Type]
- schemaExecPostInstall :: Maybe Text
- schemaExecPostInstallAndUpgrade :: Maybe Text
- data SQL_SCHEMA = SQL_SCHEMA
- data Check = Check {}
- data Domain = Domain {}
- data SQL_DOMAIN = SQL_DOMAIN
- data SQL_DOMAIN_CONSTRAINT = SQL_DOMAIN_CONSTRAINT
- data Function = Function {
- functionName :: SqlName
- functionDescription :: Text
- functionReturns :: SqlType
- functionParameters :: Maybe [Variable]
- functionTemplates :: Maybe [SqlName]
- functionTemplateData :: Maybe [FunctionTpl]
- functionReturnsColumns :: Maybe [Parameter]
- functionVariables :: Maybe [Variable]
- functionPrivExecute :: Maybe [SqlName]
- functionSecurityDefiner :: Maybe Bool
- functionOwner :: Maybe SqlName
- functionLanguage :: Maybe Text
- functionBody :: Maybe Text
- data SQL_FUNCTION = SQL_FUNCTION
- data FunctionTpl = FunctionTpl {
- functiontplTemplate :: SqlName
- functiontplDescription :: Text
- functiontplLanguage :: Maybe Text
- functiontplParameters :: Maybe [Variable]
- functiontplVariables :: Maybe [Variable]
- functiontplPrivExecute :: Maybe [SqlName]
- functiontplSecurityDefiner :: Maybe Bool
- functiontplOwner :: Maybe SqlName
- functiontplBodyPrelude :: Maybe Text
- functiontplBodyPostlude :: Maybe Text
- applyFunctionTpl :: FunctionTpl -> Function -> Function
- data Role = Role {
- roleName :: SqlName
- roleDescription :: Text
- roleLogin :: Maybe Bool
- rolePassword :: Maybe Text
- roleMemberIn :: Maybe [SqlName]
- data SQL_ROLE = SQL_ROLE
- data SQL_ROLE_MEMBERSHIP = SQL_ROLE_MEMBERSHIP
- data Sequence = Sequence {}
- data SQL_SEQUENCE = SQL_SEQUENCE
- data Table = Table {
- tableName :: SqlName
- tableDescription :: Text
- tableColumns :: [Column]
- tablePrimaryKey :: [SqlName]
- tableUnique :: Maybe [UniqueKey]
- tableForeignKeys :: Maybe [ForeignKey]
- tableChecks :: Maybe [Check]
- tableInherits :: Maybe [SqlName]
- tablePrivSelect :: Maybe [SqlName]
- tablePrivInsert :: Maybe [SqlName]
- tablePrivUpdate :: Maybe [SqlName]
- tablePrivDelete :: Maybe [SqlName]
- tableTemplates :: Maybe [SqlName]
- tableTemplateData :: Maybe [TableTpl]
- data SQL_TABLE = SQL_TABLE
- data TableTpl = TableTpl {
- tabletplTemplate :: SqlName
- tabletplDescription :: Text
- tabletplForeignKeys :: Maybe [ForeignKey]
- tabletplInherits :: Maybe [SqlName]
- tabletplColumns :: Maybe [Column]
- tabletplChecks :: Maybe [Check]
- tabletplPrivSelect :: Maybe [SqlName]
- tabletplPrivInsert :: Maybe [SqlName]
- tabletplPrivUpdate :: Maybe [SqlName]
- tabletplPrivDelete :: Maybe [SqlName]
- data Column = Column {}
- data SQL_COLUMN = SQL_COLUMN
- applyTableTpl :: TableTpl -> Table -> Table
- data UniqueKey = UniqueKey {}
- data ForeignKey = ForeignKey {}
- data SQL_TABLE_CONSTRAINT = SQL_TABLE_CONSTRAINT
- data Type = Type {}
- data TypeElement = TypeElement {}
- data SQL_TYPE = SQL_TYPE
- module Database.YamSql.Internal.SqlId
- module Database.YamSql.Internal.Commons
Documentation
Schema | |
|
Data Schema Source # | |
Show Schema Source # | |
Generic Schema Source # | |
ToJSON Schema Source # | |
FromJSON Schema Source # | |
ToSqlId (SqlContext (Schema, Domain)) Source # | |
ToSqlId (SqlContext (Schema, Function)) Source # | |
ToSqlId (SqlContext (Schema, Sequence)) Source # | |
ToSqlId (SqlContext (Schema, Table)) Source # | |
ToSqlId (SqlContext (Schema, Type)) Source # | |
ToSqlId (SqlContext (Schema, Table, Column)) Source # | |
ToSqlId (SqlContext Schema) Source # | |
type Rep Schema Source # | |
data SQL_SCHEMA Source #
Check | |
|
Domains are aliases of an existing SQL types, possibly with checks
Domain | |
|
data SQL_DOMAIN Source #
data SQL_DOMAIN_CONSTRAINT Source #
Function | |
|
data SQL_FUNCTION Source #
data FunctionTpl Source #
applyFunctionTpl :: FunctionTpl -> Function -> Function Source #
Role | |
|
data SQL_ROLE_MEMBERSHIP Source #
data SQL_SEQUENCE Source #
Table | |
|
TableTpl | |
|
Column | |
|
data SQL_COLUMN Source #
data ForeignKey Source #
data SQL_TABLE_CONSTRAINT Source #
Type | |
|
data TypeElement Source #