src/hg/inc/jksql.h 1.87

1.87 2010/03/18 01:50:56 tdreszer
Thought this quick lookup of row count would help
Index: src/hg/inc/jksql.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/jksql.h,v
retrieving revision 1.86
retrieving revision 1.87
diff -b -B -U 4 -r1.86 -r1.87
--- src/hg/inc/jksql.h	15 Oct 2009 23:52:38 -0000	1.86
+++ src/hg/inc/jksql.h	18 Mar 2010 01:50:56 -0000	1.87
@@ -160,8 +160,11 @@
 boolean sqlRowExists(struct sqlConnection *conn,
 	char *table, char *field, char *key);
 /* Return TRUE if row where field = key is in table. */
 
+int sqlRowCount(struct sqlConnection *conn, char *queryTblAndCondition);
+/* Return count of rows that match condition. The queryTblAndCondition
+ * should contain everying after "select count(*) FROM " */
 
 /* Options to sqlLoadTabFile */
 
 #define SQL_TAB_FILE_ON_SERVER 0x01  /* tab file is directly accessible