Home | History | Annotate | Download | only in bsddb

Lines Matching full:columns

115 _columns = '._COLUMNS__'  # table_name+this key contains a list of columns
309 def CreateTable(self, table, columns):
310 """CreateTable(table, columns) - Create a new table in the database.
314 assert isinstance(columns, list)
323 for column in columns :
335 pickle.dumps(columns, 1), txn=txn)
358 """Return a list of columns in the given table.
383 def CreateOrExtendTable(self, table, columns):
384 """CreateOrExtendTable(table, columns)
389 additional columns present in the given list as well as
390 all of its current columns.
392 assert isinstance(columns, list)
395 self.CreateTable(table, columns)
397 # the table already existed, add any new columns
416 for c in columns:
539 # modify only requested columns
540 columns = mappings.keys()
544 for column in columns:
590 # delete row data from all columns
591 columns = self.__tablecolumns[table]
596 for column in columns:
623 def Select(self, table, columns, conditions={}):
624 """Select(table, columns, conditions) - retrieve specific row data
627 * columns - a list of which column data to return. If
628 columns is None, all columns will be returned.
636 if columns is None:
637 columns = self.__tablecolumns[table]
638 matching_rowids = self.__Select(table, columns, conditions)
648 def __Select(self, table, columns, conditions):
651 holding the row data for columns listed in the columns param
660 if columns is None:
661 columns = self.tablecolumns[table]
662 for column in (columns + conditions.keys()):
723 # speedup: don't linear search columns within loop
724 if column in columns:
762 if len(columns) > 0:
764 for column in columns: