db36afeb468b02149d727fc0c28743a3b7eb6ebe kate Thu Apr 28 20:46:10 2011 -0700 Add commands to encodeExp lib and tool: copy (for backup), remove (whack experiment from table), deacc (was 'revoke'). Expand 'history' command. Fixes to action and user logging in history table' diff --git src/hg/inc/jksql.h src/hg/inc/jksql.h index 74989ed..8280023 100644 --- src/hg/inc/jksql.h +++ src/hg/inc/jksql.h @@ -298,30 +298,33 @@ struct hash *sqlQuickHash(struct sqlConnection *conn, char *query); /* Return a hash filled with results of two column query. * The first column is the key, the second the value. */ struct slInt *sqlQuickNumList(struct sqlConnection *conn, char *query); /* Return a list of slInts for a single column query. * Do a slFreeList on result when done. */ struct slDouble *sqlQuickDoubleList(struct sqlConnection *conn, char *query); /* Return a list of slDoubles for a single column query. * Do a slFreeList on result when done. */ void sqlRenameTable(struct sqlConnection *sc, char *table1, char *table2); /* Rename table */ +void sqlCopyTable(struct sqlConnection *sc, char *table1, char *table2); +/* Copy table1 to table2 */ + void sqlDropTable(struct sqlConnection *sc, char *table); /* Drop table if it exists. */ void sqlGetLock(struct sqlConnection *sc, char *name); /* Sets an advisory lock on the process for 1000s returns 1 if successful,*/ /* 0 if name already locked or NULL if error occurred */ /* blocks another client from obtaining a lock with the same name */ void sqlReleaseLock(struct sqlConnection *sc, char *name); /* Releases an advisory lock created by GET_LOCK in sqlGetLock */ void sqlHardLockTables(struct sqlConnection *sc, struct slName *tableList, boolean isWrite); /* Hard lock given table list. Unlock with sqlHardUnlockAll. */