fix scaffolding for tiny backend
This commit is contained in:
parent
a39b78b641
commit
4a951ad39d
@ -110,7 +110,6 @@ scaffold = do
|
|||||||
Postgresql -> $(codegen $ "postgresqlConnPool")
|
Postgresql -> $(codegen $ "postgresqlConnPool")
|
||||||
MongoDB -> $(codegen $ "mongoDBConnPool")
|
MongoDB -> $(codegen $ "mongoDBConnPool")
|
||||||
Tiny -> ""
|
Tiny -> ""
|
||||||
_ -> error $ "Invalid backend: " ++ backendLower
|
|
||||||
|
|
||||||
packages = if backend == MongoDB then " , mongoDB\n , bson\n" else ""
|
packages = if backend == MongoDB then " , mongoDB\n , bson\n" else ""
|
||||||
|
|
||||||
@ -140,7 +139,7 @@ scaffold = do
|
|||||||
Sqlite -> writeFile' ("config/" ++ backendLower ++ ".yml") $(codegen ("config/sqlite.yml"))
|
Sqlite -> writeFile' ("config/" ++ backendLower ++ ".yml") $(codegen ("config/sqlite.yml"))
|
||||||
Postgresql -> writeFile' ("config/" ++ backendLower ++ ".yml") $(codegen ("config/postgresql.yml"))
|
Postgresql -> writeFile' ("config/" ++ backendLower ++ ".yml") $(codegen ("config/postgresql.yml"))
|
||||||
MongoDB -> writeFile' ("config/" ++ backendLower ++ ".yml") $(codegen ("config/mongoDB.yml"))
|
MongoDB -> writeFile' ("config/" ++ backendLower ++ ".yml") $(codegen ("config/mongoDB.yml"))
|
||||||
_ -> error $ "Invalid backend: " ++ backendLower
|
Tiny -> return ()
|
||||||
|
|
||||||
let isTiny = backend == Tiny
|
let isTiny = backend == Tiny
|
||||||
ifTiny a b = if isTiny then a else b
|
ifTiny a b = if isTiny then a else b
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user