class_docstr: SQLite3 TaskRecord backend.
docstr: Update the data in an existing record.
docstr_tok: ["Update","the","data","in","an","existing","record","."]
code: def update_record(self, msg_id, rec):
      """Update the data in an existing record."""
      query = "UPDATE '%s' SET " % self.table
      sets = []
      keys = sorted(rec.keys())
      values = []
      for key in keys:
          sets.append("%s = ?" % key)
          values.append(rec[key])
      query += ", ".join(sets)
      query += " WHERE msg_id == ?"
      values.append(msg_id)
      self._db.execute(query, values)
  
imports: import json
  import os
  from datetime import datetime
  from dateutil.parser import parse
  from tornado import ioloop
  from traitlets import Dict, Instance, List, Unicode
  from ..util import ensure_timezone, extract_dates
  from .dictdb import BaseDB
label_desc: Use image node_id 11 for calling the SQLiteDB obj's underlying member method code with example usage: obj.update_record(msg_id, rec) without return types