TableRow

class q2_sdk.hq.table_row.ExtendedBase[source]

Bases: object

RAW_TYPE

alias of str

property text
property pyval
class q2_sdk.hq.table_row.ExtendedString[source]

Bases: str, ExtendedBase

RAW_TYPE

alias of str

class q2_sdk.hq.table_row.ExtendedInt[source]

Bases: int, ExtendedBase

RAW_TYPE

alias of int

class q2_sdk.hq.table_row.ExtendedFloat(x=0, /)[source]

Bases: float, ExtendedBase

RAW_TYPE

alias of float

class q2_sdk.hq.table_row.ExtendedDateTime[source]

Bases: datetime, ExtendedBase

property pyval
class q2_sdk.hq.table_row.ExtendedDecimal(value='0', context=None)[source]

Bases: Decimal, ExtendedBase

property pyval
class q2_sdk.hq.table_row.ExtendedBool(value)[source]

Bases: ExtendedBase

RAW_TYPE

alias of bool

property text
property pyval
class q2_sdk.hq.table_row.TableRow(element, row_class)[source]

Bases: object

Returned from a DBObject call to the DB if setting RETURN_TABLE_OBJECTS_FROM_DB is set to True. Allows for converting of LXML ObjectifiedElement.text to the defined type in the RepresentationRow class for each DBObject. This RepresentationRow should match the schema in the DB for the associated DB table. Also accessing .text and .pyval are no longer necessary. Just accessing the field name will return the correct value as the correct type. Also included are the __repr__ and __str__ methods that will show the string representation of the xml underneath to make debugging easier.

property headers: list[str]
keys()[source]
Return type:

list[str]

values()[source]
Return type:

list[Any]

items()[source]
Return type:

Generator[tuple[str, Any], None, None]