parameters: (cls, dataset_id, type_id, cursor)
docstring: Add a data type entry to the datatype table
docstring_summary: Add a data type entry to the datatype table
docstring_tokens: Add a data type entry to the datatype table
function: def add(cls, dataset_id, type_id, cursor):
          """
              Add a data type entry to the datatype table
          """
          if type_id not in cls.DATA_TYPES.keys():
              raise RuntimeError("DataType got an unknown type ID: %s" % type_id)
  
          t = (type_id, dataset_id,)
          cursor.execute("insert into %s(type_id, dataset_id) values (?,?)"
                         % cls.TABLE_NAME, t)
function_tokens: def add ( cls , dataset_id , type_id , cursor ) : if type_id not in cls . DATA_TYPES . keys ( ) : raise RuntimeError ( "DataType got an unknown type ID: %s" % type_id ) t = ( type_id , dataset_id , ) cursor . execute ( "insert into %s(type_id, dataset_id) values (?,?)" % cls . TABLE_NAME , t )