Module Spicey.GenerationHelper

Summary of exported operations:

lowerFirst :: String -> String   
upperFirst :: String -> String   
dbconn :: String -> (String,String)   
Converts a string into a qualified name of the module "Database.CDBI.Connection".
html :: String -> (String,String)   
Converts a string into a qualified name of the module "HTML.Base".
wui :: String -> (String,String)   
Converts a string into a qualified name of the module "WUI".
spiceyModule :: String   
authenticationModule :: String   
authorizationModule :: String   
sessionInfoModule :: String   
dataModuleName :: String   
mappingModuleName :: String   
entitiesToHtmlModule :: String -> String   
Name of EntitiesToHtml module.
bootstrapModule :: String   
hrefButtonName :: (String,String)   
relatedRelation :: String -> Relationship -> String   
relationshipsForEntityName :: String -> [Relationship] -> [Relationship]   
isGenerated :: Entity -> Bool   
notPKey :: Attribute -> Bool   
notKey :: Attribute -> Bool   
isRelevantForEntity :: Entity -> [Attribute] -> Bool   
oneToOne :: Entity -> [Relationship] -> [String]   
manyToOne :: Entity -> [Relationship] -> [String]   
manyToMany :: [Entity] -> Entity -> [String]   
linkTableName :: String -> String -> [Entity] -> String   
controllerType :: CTypeExpr   
The standard type of new and list controllers.
controllerModuleName :: String -> String   
controllerFunctionName :: String -> String -> (String,String)   
The name of the controller function for a given entity and controller functionality.
transFunctionName :: String -> String -> (String,String)   
The name of the transaction function for a given entity and transaction functionality.
viewModuleName :: String -> String   
viewFunctionName :: String -> String -> (String,String)   
viewBlockType :: CTypeExpr   
attrType :: Attribute -> CTypeExpr   
attrDefaultValues :: CExpr -> [Attribute] -> [CExpr]   
Generates Curry expressions representing default values.
domainDefaultValue :: CExpr -> Domain -> CExpr   
Generates Curry expressions representing a default values for a given domain.
isStringDom :: Domain -> Bool   
hasDateAttribute :: [Attribute] -> Bool   
combinator :: Int -> (String,String)   
attrWidgets :: [Attribute] -> [CExpr]   
widgetFor :: Domain -> Bool -> CExpr   

Exported operations:

lowerFirst :: String -> String   

upperFirst :: String -> String   

dbconn :: String -> (String,String)   

Converts a string into a qualified name of the module "Database.CDBI.Connection".

Further infos:
  • solution complete, i.e., able to compute all solutions

html :: String -> (String,String)   

Converts a string into a qualified name of the module "HTML.Base".

Further infos:
  • solution complete, i.e., able to compute all solutions

wui :: String -> (String,String)   

Converts a string into a qualified name of the module "WUI".

Further infos:
  • solution complete, i.e., able to compute all solutions

spiceyModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

authenticationModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

authorizationModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

sessionInfoModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

dataModuleName :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

mappingModuleName :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

entitiesToHtmlModule :: String -> String   

Name of EntitiesToHtml module.

Further infos:
  • solution complete, i.e., able to compute all solutions

bootstrapModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

hrefButtonName :: (String,String)   

Further infos:
  • solution complete, i.e., able to compute all solutions

relatedRelation :: String -> Relationship -> String   

Further infos:
  • partially defined

isGenerated :: Entity -> Bool   

notPKey :: Attribute -> Bool   

notKey :: Attribute -> Bool   

isRelevantForEntity :: Entity -> [Attribute] -> Bool   

oneToOne :: Entity -> [Relationship] -> [String]   

manyToOne :: Entity -> [Relationship] -> [String]   

manyToMany :: [Entity] -> Entity -> [String]   

linkTableName :: String -> String -> [Entity] -> String   

controllerType :: CTypeExpr   

The standard type of new and list controllers.

Further infos:
  • solution complete, i.e., able to compute all solutions

controllerModuleName :: String -> String   

Further infos:
  • solution complete, i.e., able to compute all solutions

controllerFunctionName :: String -> String -> (String,String)   

The name of the controller function for a given entity and controller functionality.

Further infos:
  • solution complete, i.e., able to compute all solutions

transFunctionName :: String -> String -> (String,String)   

The name of the transaction function for a given entity and transaction functionality.

Further infos:
  • solution complete, i.e., able to compute all solutions

viewModuleName :: String -> String   

Further infos:
  • solution complete, i.e., able to compute all solutions

viewFunctionName :: String -> String -> (String,String)   

Further infos:
  • solution complete, i.e., able to compute all solutions

viewBlockType :: CTypeExpr   

Further infos:
  • solution complete, i.e., able to compute all solutions

attrDefaultValues :: CExpr -> [Attribute] -> [CExpr]   

Generates Curry expressions representing default values. The first argument contains an expression that is used for ClockTime attributes (it is set to the current time as a default value).

domainDefaultValue :: CExpr -> Domain -> CExpr   

Generates Curry expressions representing a default values for a given domain. The first argument contains an expression that is used for ClockTime attributes (it is set to the current time as a default value).

isStringDom :: Domain -> Bool   

hasDateAttribute :: [Attribute] -> Bool   

combinator :: Int -> (String,String)   

attrWidgets :: [Attribute] -> [CExpr]   

widgetFor :: Domain -> Bool -> CExpr