RowList

class ctds.RowList

A sequence object which buffers result set rows in a lightweight manner. Python objects wrapping the columnar data are only created when the data is actually accessed.

__getitem__(key, /)

Return self[key].

__len__()

Return len(self).

description

A description of the current result set columns. The description is a sequence of tuples, one tuple per column in the result set. The tuple describes the column data as follows:

name

The name of the column, if provided.

type_code

The specific type of the column.

display_size

The SQL type size of the column.

internal_size

The client size of the column.

precision

The precision of NUMERIC and DECIMAL columns.

scale

The scale of NUMERIC and DECIMAL columns.

null_ok

Whether the column allows NULL.

Note

In Python 3+, this is a tuple of collections.namedtuple() objects whose members are defined above.

PEP 0249#description

Returns

A sequence of tuples or None if no results are available.

Return type

tuple(tuple(str, int, int, int, int, int, bool))