update_record

Data_Reduction.GAVRT.mysql.update_record(db, table, fields, condition)

Updates a record in ‘table’ of data base ‘db’

:param db : database connection object returned from a MySQLdb connect()

:param table : name of the table in which the record will be updated

:param fields : dictionary with column names and the values to be updated

:param condition : for the condition which selects the record(s) :type condition : (column name, value tuple)

Returns

unique ID of the record, message which is blank if successful.