Exemplo n.º 1
0
class Row(CStruct):
    """
    Examples:
        Column name: oid
            Table OID: 1247
            Column index: 65534
            Type OID: 26
            Column length: 4
            Type modifier: -1
            Format: Text (0)
        Column name: typbasetype
            Table OID: 1247
            Column index: 24
            Type OID: 26
            Column length: 4
            Type modifier: -1
            Format: Text (0)
    """
    name = CString(length=AUTOSIZED)
    oid = CInt()
    attr_num = CUShort()
    datatype_oid = CInt()
    datatype_size = CShort()
    type_modifier = CInt()
    format_code = CShort()
Exemplo n.º 2
0
class MarketStatus(CStruct):
    exchange = CUChar()
    length_of_market_type = CUShort()
    market_type = CString(length = "length_of_market_type")
    length_of_status = CUShort()
    status = CString(length = "length_of_status")
Exemplo n.º 3
0
class ExchangeMessage(CStruct):
    exchange = CUChar()
    length = CUShort()
    message = CString(length = "length")
    exchange_time_stamp = CUInt()
Exemplo n.º 4
0
class DataRow(CStruct):
    type = CUChar(always=ord('D'))
    length = CInt()
    num_fields = CUShort()
    column_values = CArray("num_fields", ColumnValue)
Exemplo n.º 5
0
class RowDescription(CStruct):
    type = CUChar(always=ord('T'))
    length = CInt()
    num_fields = CUShort()
    fields = CArray("num_fields", Row)