def getColumnNames(dbhandle, table):

    cc = executewait(dbhandle, "SELECT * FROM %s LIMIT 1" % table)
    return tuple([x[0] for x in cc.description])
return column names of a table from a database.
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Database.py/getColumnNames