diff src/settings.sig @ 870:7fa9a37a34b3

Move all DBMS initialization to #init
author Adam Chlipala <adamc@hcoop.net>
date Tue, 30 Jun 2009 15:45:10 -0400
parents 64ba57fa20bf
children 9654bce27cff
line wrap: on
line diff
--- a/src/settings.sig	Sun Jun 28 16:41:10 2009 -0400
+++ b/src/settings.sig	Tue Jun 30 15:45:10 2009 -0400
@@ -112,8 +112,9 @@
            | Client
            | Nullable of sql_type
 
-    val p_sql_type : sql_type -> Print.PD.pp_desc
+    val p_sql_type : sql_type -> string
     val isBlob : sql_type -> bool
+    val isNotNull : sql_type -> bool
 
     type dbms = {
          name : string,
@@ -124,9 +125,11 @@
          (* Pass these linker arguments *)
          global_init : Print.PD.pp_desc,
          (* Define uw_client_init() *)
-         init : string * (string * int) list -> Print.PD.pp_desc,
-         (* Define uw_db_init(), uw_db_close(), uw_db_begin(), uw_db_commit(), and uw_db_rollback()
-          * from dbstring and prepared statements *)
+         init : {dbstring : string,
+                 prepared : (string * int) list,
+                 tables : (string * (string * sql_type) list) list,
+                 sequences : string list} -> Print.PD.pp_desc,
+         (* Define uw_db_init(), uw_db_close(), uw_db_begin(), uw_db_commit(), and uw_db_rollback() *)
          query : {loc : ErrorMsg.span, numCols : int,
                   doCols : ({wontLeakStrings : bool, col : int, typ : sql_type} -> Print.PD.pp_desc)
                            -> Print.PD.pp_desc}