FieldDescription

Lazily-demarshalled field (column) description

Members

Properties

columnId
short columnId [@property getter]

If the field can be identified as a column of a specific table, the attribute number of the column; otherwise zero.

formatCode
FormatCode formatCode [@property getter]

The format code being used for the field. Currently will be zero (text) or one (binary). In a RowDescription returned from the statement variant of Describe, the format code is not yet known and will always be zero.

name
string name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
table
ObjectID table [@property getter]

If the field can be identified as a column of a specific table, the object ID of the table; otherwise zero.

type
ObjectID type [@property getter]

The object ID of the field's data type.

typeLen
short typeLen [@property getter]

The data type size (see pg_type.typlen). Note that negative values denote variable-width types.

typeModifier
int typeModifier [@property getter]

The type modifier (see pg_attribute.atttypmod). The meaning of the modifier is type-specific.

Static functions

demarshal
FieldDescription demarshal(const(ubyte)[] buf, int bytesDiscarded)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

m_buf
const(ubyte)[] m_buf;

backing buffer, owned by Message

Meta