482cd8f6baaff31cfbfc99391f19d1e739e67114 tdreszer Mon Sep 27 11:59:41 2010 -0700 Moved mdb queries from hgTracks and hgApi to mdb. Made sure the queries exclude files. diff --git src/hg/inc/mdb.h src/hg/inc/mdb.h index f490a21..0d24a3a 100644 --- src/hg/inc/mdb.h +++ src/hg/inc/mdb.h @@ -298,5 +298,14 @@ // Finds the val associated with the var or retruns NULL +#define MDB_VAL_STD_TRUNCATION 64 +struct slName *mdbObjSearch(struct sqlConnection *conn, char *var, char *val, char *op, int limit, boolean tables, boolean files); +// Search the metaDb table for objs by var and val. Can restrict by op "is" or "like" and accept (non-zero) limited string size +// Search is via mysql, so it's case-insensitive. Return is sorted on obj. + +struct slName *mdbValSearch(struct sqlConnection *conn, char *var, int limit, boolean tables, boolean files); +// Search the metaDb table for vals by var. Can impose (non-zero) limit on returned string size of val +// Search is via mysql, so it's case-insensitive. Return is sorted on val. + #endif /* MDB_H */