You don't need to create Row objects directly. Instead they should be created by using the appropriate methods of the Table class.
Row objects support the standard comparison operators <,<=,>,>=,==,<>
as well as the len()
function.
) |
[action=''][, method='post'][, stickyData={}][, enctype='multipart/form-data'][, submit='Submit'][, modeDict={'mode':'mode', 'table':'table', 'submode':'submode'}][, submode='add']) |
row) |
row) |
row) |
True
if the Rows are already related, otherwise returns False
.
[all=None],[**params]) |
column:values
pairs or set **params by using column=value
pairs.
) |
) |
) |
(key, value)
pairs where the key is the column name and the value is the value of each field for the current row.
column) |
True
if the row has a column named column, False
otherwise
) |
Each column from the Row can be accessed through a dictionary-like interface. For example to print the value of the column named 'firstName'
from the Row with rowid
1
from the 'Person'
table in the database database
you would use:
>>> print database['Person'][1]['firstName'] John