FieldDescription.read constructor

FieldDescription.read(
  1. PgByteDataReader reader
)

Implementation

factory FieldDescription.read(PgByteDataReader reader) {
  final fieldName = reader.readNullTerminatedString();
  final tableOid = reader.readUint32();
  final columnOid = reader.readUint16();
  final typeOid = reader.readUint32();
  final dataTypeSize = reader.readUint16();
  final typeModifier = reader.readInt32();
  final formatCode = reader.readUint16();

  return FieldDescription._(
    fieldName,
    tableOid,
    columnOid,
    typeOid,
    dataTypeSize,
    typeModifier,
    formatCode,
  );
}