data PG::Field
A column of a row description.
Methods
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def with(*, name: String = …, table: Int = …, column: Int = …, type: Int = …, size: Int = …, modifier: Int = …, format: Int = …) -> PG::Field
A copy with the fields given replaced.
def name -> String
The column's name.
def table -> Int
The table's OID, or 0 when the column is not a table's.
def column -> Int
The column's number in its table, or 0.
def type -> Int
The OID of the column's type.
def size -> Int
pg_type.typlen: negative for a type of variable size.
def modifier -> Int
pg_attribute.atttypmod.
def format -> Int
0 text, 1 binary.