|
definition: |
createModels :: String -> ERD -> String -> String -> IO ()
createModels erprogpath erd path dbfile = do
let erdname = erdName erd
curdir <- getCurrentDirectory
setCurrentDirectory path
--erd2CDBI dbfile erprogpath erd
startWithERD
(defaultEROptions { optStorage = SQLite dbfile, optCDBI = True
, optModule = "Model." ++ erdname
, optFile = erdname ++ ".curry" })
erprogpath
erd
setCurrentDirectory curdir
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Uses Curry package `ertools` for ERD to Curry transformation |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,_,_) |-> _}
|
|
name: |
createModels |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> Database.ERD.ERD -> String -> String -> Prelude.IO () |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |