Package picalo :: Module Database :: Class Record
[show private | hide private]
[frames | no frames]

Class Record


Created automatically by the Cursor when a row is fetched
Method Summary
  __init__(self, data, columns_map)
  __getitem__(self, col)
Returns the value at the given column.
  __iter__(self)
Returns an iterator to the records in this table
  __len__(self)
Returns the number of columns in this record
  __repr__(self)
  __setitem__(self, col, value)
Sets the value of the given column.
  __str__(self)
  _deref_(self, col)
Dereferences the col name to its index (if it is a name)
  has_key(self, col)
Returns whether the row has the given column key

Method Details

__getitem__(self, col)
(Indexing operator)

Returns the value at the given column. Col can be the column index or name

__iter__(self)

Returns an iterator to the records in this table

__len__(self)
(Length operator)

Returns the number of columns in this record

__setitem__(self, col, value)
(Index assignment operator)

Sets the value of the given column. Col can be the column index or name

_deref_(self, col)

Dereferences the col name to its index (if it is a name)

has_key(self, col)

Returns whether the row has the given column key

Generated by Epydoc 2.1 on Mon Mar 19 21:49:21 2007 http://epydoc.sf.net