src/hg/inc/jksql.h 1.82
1.82 2009/04/13 22:34:11 markd
added function to determine if a mysql server appears to be remote; ignore SQL_TAB_FILE_ON_SERVER if server is remote
Index: src/hg/inc/jksql.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/jksql.h,v
retrieving revision 1.81
retrieving revision 1.82
diff -b -B -U 4 -r1.81 -r1.82
--- src/hg/inc/jksql.h 28 Feb 2009 00:33:59 -0000 1.81
+++ src/hg/inc/jksql.h 13 Apr 2009 22:34:11 -0000 1.82
@@ -155,9 +155,9 @@
/* Options to sqlLoadTabFile */
-#define SQL_TAB_FILE_ON_SERVER 0x01 /* tab file is directly accessable
+#define SQL_TAB_FILE_ON_SERVER 0x01 /* tab file is directly accessible
* by the sql server */
#define SQL_TAB_FILE_WARN_ON_WARN 0x02 /* warn on warnings being returned
* rather than abort */
#define SQL_TAB_FILE_WARN_ON_ERROR 0x04 /* warn on errors and warnings being
@@ -173,9 +173,10 @@
void sqlLoadTabFile(struct sqlConnection *conn, char *path, char *table,
unsigned options);
/* Load a tab-seperated file into a database table, checking for errors.
- * Options are the SQL_TAB_* bit set. */
+ * Options are the SQL_TAB_* bit set. SQL_TAB_FILE_ON_SERVER is ignored if
+ * sqlIsRemote() returns true. */
struct sqlResult *sqlGetResult(struct sqlConnection *sc, char *query);
/* Query database.
* Returns NULL if result was empty. Otherwise returns a structure
@@ -481,5 +482,9 @@
void sqlSetParanoid(boolean beParanoid);
/* If set to TRUE, will make more diagnostic stderr messages. */
+boolean sqlIsRemote(struct sqlConnection *conn);
+/* test if the conn appears to be to a remote system.
+ * Current only tests for a TCP/IP connection */
+
#endif /* JKSQL_H */