Home | History | Annotate | Download | only in bsddb

Lines Matching refs:rowid

123 _data =  '._DATA_.'  # this+column+this+rowid key contains table data
124 _rowid = '._ROWID_.' # this+rowid+this key contains a unique entry for each
126 _rowid_str_len = 8 # length in bytes of the unique rowid strings
129 def _data_key(table, col, rowid):
130 return table + _data + col + _data + rowid
138 def _rowid_key(table, rowid):
139 return table + _rowid + rowid + _rowid
499 rowid = self.__new_rowid(table, txn=txn)
504 self.db.put(_data_key(table, column, rowid), dataitem, txn=txn)
517 self.db.delete(_rowid_key(table, rowid))
541 for rowid in matching_rowids.keys():
549 _data_key(table, column, rowid),
552 _data_key(table, column, rowid),
561 _data_key(table, column, rowid),
592 for rowid in matching_rowids.keys():
599 self.db.delete(_data_key(table, column, rowid),
606 self.db.delete(_rowid_key(table, rowid), txn=txn)
732 # extract the rowid from the key
733 rowid = key[-_rowid_str_len:]
735 if not rowid in rejected_rowids:
739 if not rowid in matching_rowids:
740 matching_rowids[rowid] = {}
742 matching_rowids[rowid][column] = data
744 if rowid in matching_rowids:
745 del matching_rowids[rowid]
746 rejected_rowids[rowid] = rowid
763 for rowid, rowdata in matching_rowids.items():
769 _data_key(table, column, rowid))