Module Spicey.Scaffolding

This is the main file for scaffolding.

Summary of exported operations:

showCProg :: CurryProg -> String   
Pretty print an AbstractCurry program with name qualification on demand.
getRelationships :: ERD -> [Relationship]   
getEntities :: ERD -> [Entity]   
createViews :: String -> ERD -> String -> String -> IO ()   
createEntityRoutes :: String -> ERD -> String -> String -> IO ()   
createControllers :: String -> ERD -> String -> String -> IO ()   
createAuthorizations :: String -> ERD -> String -> String -> IO ()   
createHtmlHelpers :: String -> ERD -> String -> String -> IO ()   
createModels :: String -> ERD -> String -> String -> IO ()   
createRoutes :: String -> ERD -> String -> String -> IO ()   
generateAuthorizations :: String -> [Entity] -> CurryProg   

Exported operations:

showCProg :: CurryProg -> String   

Pretty print an AbstractCurry program with name qualification on demand. TODO: Currently, our naming scheme should ensure that there are no name conflicts. Therefore, we omit the list of Curry modules for the on-demand qualification. However, to be on the safe side, one should explicitly set this list to the current module and the list of its imports.

getRelationships :: ERD -> [Relationship]   

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

getEntities :: ERD -> [Entity]   

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

createViews :: String -> ERD -> String -> String -> IO ()   

createEntityRoutes :: String -> ERD -> String -> String -> IO ()   

createControllers :: String -> ERD -> String -> String -> IO ()   

createAuthorizations :: String -> ERD -> String -> String -> IO ()   

createHtmlHelpers :: String -> ERD -> String -> String -> IO ()   

createModels :: String -> ERD -> String -> String -> IO ()   

createRoutes :: String -> ERD -> String -> String -> IO ()   

generateAuthorizations :: String -> [Entity] -> CurryProg