Skip to content

FieldInfo

relationalai.semantics.inspect
FieldInfo(name: str, type_name: str)

A typed field in a property or relationship.

Attributes

.name

FieldInfo.name: str

Field name (e.g. "age", "freight_group").

.type_name

FieldInfo.type_name: str

Human-friendly type name. Core types use preferred aliases ("Integer" not "Number(38,0)"). User-defined concept names are returned as-is ("FreightGroup"). These names correspond to importable types from relationalai.semantics — e.g. Integer, String, Float, Date, Decimal. Sized decimals like "Decimal(12,2)" correspond to Decimal.size(12, 2).

Used By

 semantics > inspect
├──  RelationshipInfo
└──  TableInfo