data PG::Field

A column of a row description.

src/backend.qz:2

Methods

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

src/backend.qz:2

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.

src/backend.qz:2

def name -> String

The column's name.

src/backend.qz:4

def table -> Int

The table's OID, or 0 when the column is not a table's.

src/backend.qz:6

def column -> Int

The column's number in its table, or 0.

src/backend.qz:8

def type -> Int

The OID of the column's type.

src/backend.qz:10

def size -> Int

pg_type.typlen: negative for a type of variable size.

src/backend.qz:12

def modifier -> Int

pg_attribute.atttypmod.

src/backend.qz:14

def format -> Int

0 text, 1 binary.

src/backend.qz:16