Safe Haskell | Safe-Inferred |
---|
Synopsis
- data GeneratorAction
- = CreateFile {
- filePath :: Text
- fileContent :: Text
- | AppendToFile {
- filePath :: Text
- fileContent :: Text
- | AppendToMarker { }
- | AddImport {
- filePath :: Text
- fileContent :: Text
- | AddAction {
- filePath :: Text
- fileContent :: Text
- | AddToDataConstructor {
- dataConstructor :: Text
- filePath :: Text
- fileContent :: Text
- | AddMountToFrontController {
- filePath :: Text
- applicationName :: Text
- | EnsureDirectory { }
- | RunShellCommand {
- shellCommand :: Text
- = CreateFile {
- fieldsForTable :: [Statement] -> Text -> Maybe [Text]
- columnRelevantForCreateOrEdit :: PrimaryKeyConstraint -> Column -> Bool
- getTable :: [Statement] -> Text -> Maybe Statement
Documentation
data GeneratorAction Source #
Instances
Show GeneratorAction Source # | |
Defined in IHP.IDE.CodeGen.Types showsPrec :: Int -> GeneratorAction -> ShowS # show :: GeneratorAction -> String showList :: [GeneratorAction] -> ShowS # | |
Eq GeneratorAction Source # | |
Defined in IHP.IDE.CodeGen.Types (==) :: GeneratorAction -> GeneratorAction -> Bool # (/=) :: GeneratorAction -> GeneratorAction -> Bool # |
columnRelevantForCreateOrEdit :: PrimaryKeyConstraint -> Column -> Bool Source #
Returns True when a column should be part of the generated controller or forms
Returrns False
for primary keys, or fields such as created_at