0a5052c6019c20ce851d2398ad339344afc32089 kent Thu Apr 4 19:30:37 2013 -0700 Added sqlQuickLongLong diff --git src/hg/inc/jksql.h src/hg/inc/jksql.h index d65282f..84e950d 100644 --- src/hg/inc/jksql.h +++ src/hg/inc/jksql.h @@ -266,30 +266,33 @@ * Returns NULL if query comes up empty. */ char *sqlNeedQuickQuery(struct sqlConnection *sc, char *query, char *buf, int bufSize); /* Does query and returns first field in first row. Meant * for cases where you are just looking up one small thing. * Prints error message and aborts if query comes up empty. */ int sqlQuickNum(struct sqlConnection *conn, char *query); /* Get numerical result from simple query. Returns 0 * if query returns no result. */ int sqlNeedQuickNum(struct sqlConnection *conn, char *query); /* Get numerical result or die trying. */ +long long sqlQuickLongLong(struct sqlConnection *conn, char *query); +/* Get long long numerical result from simple query. Returns 0 if query not found */ + double sqlQuickDouble(struct sqlConnection *conn, char *query); /* Get floating point numerical result from simple query */ char *sqlQuickString(struct sqlConnection *conn, char *query); /* Return result of single-row/single column query in a * string that should eventually be freeMem'd. */ char *sqlNeedQuickString(struct sqlConnection *sc, char *query); /* Return result of single-row/single column query in a * string that should eventually be freeMem'd. This will * print an error message and abort if result returns empty. */ char *sqlQuickNonemptyString(struct sqlConnection *conn, char *query); /* Return first result of given query. If it is an empty string * convert it to NULL. */