summaryrefslogtreecommitdiff
path: root/src/cjr_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-02 13:09:54 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-02 13:09:54 -0400
commit4d83cf46590e7c48581612fd9fe6218b896b89b8 (patch)
tree9fcd1257c4b88ede3b3c1675121221c89e46d60e /src/cjr_print.sml
parent48a39b87c0f2b01c85e1bb78072387e30ab0f235 (diff)
Table declarations pushed to Cjr
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r--src/cjr_print.sml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cjr_print.sml b/src/cjr_print.sml
index fd534c4a..de8f21fc 100644
--- a/src/cjr_print.sml
+++ b/src/cjr_print.sml
@@ -688,8 +688,14 @@ fun p_decl env (dAll as (d, _) : decl) =
p_list_sep newline (p_fun env) vis,
newline]
end
+ | DTable (x, _) => box [string "/* SQL table ",
+ string x,
+ string " */",
+ newline]
| DDatabase s => box [string "void lw_db_init(lw_context ctx) {",
newline,
+ string "PGresult *res;",
+ newline,
string "PGconn *conn = PQconnectdb(\"",
string (String.toString s),
string "\");",