gdritter repos electric-boogaloo / e1812ee
Added IF NOT EXISTS to table decls Getty Ritter 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Collapse all Expand all
7171
7272 pprint :: Decl -> IO ()
7373 pprint Decl { dName = n, dFields = fs } = do
74 T.putStr "CREATE TABLE "
74 T.putStr "CREATE TABLE IF NOT EXISTS "
7575 T.putStrLn n
7676 T.putStrLn " ( id INTEGER PRIMARY KEY ASC"
7777 mapM_ printField fs