Added IF NOT EXISTS to table decls
Getty Ritter
8 years ago
71 | 71 |
|
72 | 72 |
pprint :: Decl -> IO ()
|
73 | 73 |
pprint Decl { dName = n, dFields = fs } = do
|
74 | |
T.putStr "CREATE TABLE "
|
| 74 |
T.putStr "CREATE TABLE IF NOT EXISTS "
|
75 | 75 |
T.putStrLn n
|
76 | 76 |
T.putStrLn " ( id INTEGER PRIMARY KEY ASC"
|
77 | 77 |
mapM_ printField fs
|