Update of /cvsroot/monetdb/clients/src/mapilib
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7817/src/mapilib
Modified Files:
Mapi.mx
Log Message:
Implemented the client side of switching to and from the algebra version for
SQL and XQuery.
Index: Mapi.mx
===================================================================
RCS file: /cvsroot/monetdb/clients/src/mapilib/Mapi.mx,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- Mapi.mx 11 Jan 2008 10:34:35 -0000 1.32
+++ Mapi.mx 28 Jan 2008 16:25:37 -0000 1.33
@@ -227,6 +227,7 @@
@item mapi_rows_affected() @tab Obtain number of rows changed
@item mapi_seek_row() @tab Move row reader to specific location in cache
@item mapi_setAutocommit() @tab Set auto-commit flag
[EMAIL PROTECTED] mapi_setAlgebra() @tab Use algebra backend
@item mapi_stream_query() @tab Send query and prepare for reading tuple
stream
@item mapi_table() @tab Get current table name
@item mapi_timeout() @tab Set timeout for long-running queries[TODO]
@@ -590,6 +591,10 @@
when the language is SQL. In that case, the server commits after each
statement sent to the server.
[EMAIL PROTECTED] MapiMsg mapi_setAlgebra(Mapi mid, int algebra)
+
+Tell the backend to use or stop using the algebra-based compiler.
+
@item MapiMsg mapi_cache_limit(Mapi mid, int maxrows)
A limited number of tuples are pre-fetched after each @code{execute()}. If
@@ -1073,6 +1078,7 @@
mapi_export int mapi_get_trace(Mapi mid);
mapi_export MapiMsg mapi_log(Mapi mid, const char *nme);
mapi_export MapiMsg mapi_setAutocommit(Mapi mid, int autocommit);
+mapi_export MapiMsg mapi_setAlgebra(Mapi mid, int algebra);
mapi_export char *mapi_result_error(MapiHdl hdl);
mapi_export MapiMsg mapi_next_result(MapiHdl hdl);
mapi_export MapiMsg mapi_needmore(MapiHdl hdl);
@@ -3149,6 +3155,12 @@
}
MapiMsg
+mapi_setAlgebra(Mapi mid, int algebra)
+{
+ return mapi_Xcommand(mid, "algebra", algebra ? "1" : "0");
+}
+
+MapiMsg
mapi_output(Mapi mid, char *output)
{
mapi_clrError(mid);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins