Safe Haskell | None |
---|
IHP.IDE.SchemaDesigner.Controller.Columns
Contents
Synopsis
- addColumnToTable :: Text -> Column -> Bool -> Statement -> Statement
- updateColumnInTable :: Text -> Column -> Bool -> Int -> Statement -> Statement
- updatePrimaryKeyConstraint :: Column -> Bool -> PrimaryKeyConstraint -> PrimaryKeyConstraint
- toggleUniqueInColumn :: Text -> Int -> Statement -> Statement
- deleteColumnInTable :: Text -> Int -> Statement -> Statement
- addForeignKeyConstraint :: Text -> Text -> Text -> Text -> OnDelete -> [Statement] -> [Statement]
- updateForeignKeyConstraint :: Text -> Text -> Text -> Text -> OnDelete -> Int -> [Statement] -> [Statement]
- deleteForeignKeyConstraint :: Text -> [Statement] -> [Statement]
- getCreateTable :: [Statement] -> [CreateTable]
- getCreateEnum :: [Statement] -> [Statement]
- isCreateEnumType :: Statement -> Bool
- nameList :: HasField "name" model b => [model] -> [b]
- arrayifytype :: Bool -> PostgresType -> PostgresType
- validateColumn :: Validator Text
Documentation
updatePrimaryKeyConstraint :: Column -> Bool -> PrimaryKeyConstraint -> PrimaryKeyConstraint Source #
Add or remove a column from the primary key constraint
addForeignKeyConstraint :: Text -> Text -> Text -> Text -> OnDelete -> [Statement] -> [Statement] Source #
updateForeignKeyConstraint :: Text -> Text -> Text -> Text -> OnDelete -> Int -> [Statement] -> [Statement] Source #
getCreateTable :: [Statement] -> [CreateTable] Source #
getCreateEnum :: [Statement] -> [Statement] Source #
isCreateEnumType :: Statement -> Bool Source #
arrayifytype :: Bool -> PostgresType -> PostgresType Source #