Documentation
¶
Index ¶
- type Column
- type Function
- type FunctionVolatility
- type Name
- type OID
- type Queryer
- type Relation
- type RelationKind
- type ResolvedFunction
- type ResolvedRelation
- type Rows
- type Snapshot
- func (s Snapshot) FunctionByOID(oid OID) (Function, bool)
- func (s Snapshot) FunctionsByName(name Name) []Function
- func (s Snapshot) RelationByName(name Name) (Relation, bool)
- func (s Snapshot) RelationByOID(oid OID) (Relation, bool)
- func (s Snapshot) RelationsByUnqualifiedName(name string) []Relation
- type UnresolvedReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunctionVolatility ¶
type FunctionVolatility uint8
const ( VolatilityImmutable FunctionVolatility = iota + 1 VolatilityStable VolatilityVolatile )
type Name ¶
Name is a canonical catalog name. Schema is empty when the source reference is still unqualified.
type Relation ¶
type Relation struct {
OID OID
Name Name
Kind RelationKind
Owner string
Columns []Column
}
type RelationKind ¶
type RelationKind uint8
const ( RelationTable RelationKind = iota + 1 RelationPartitionedTable RelationView RelationMaterializedView RelationForeignTable RelationSequence )
func (RelationKind) String ¶
func (k RelationKind) String() string
type ResolvedFunction ¶
type ResolvedFunction struct {
Function Function
Reason UnresolvedReason
}
func ResolveFunctionByOID ¶
func ResolveFunctionByOID(snap Snapshot, oid OID) ResolvedFunction
func (ResolvedFunction) OK ¶
func (r ResolvedFunction) OK() bool
type ResolvedRelation ¶
type ResolvedRelation struct {
Relation Relation
Reason UnresolvedReason
}
func ResolveRelation ¶
func ResolveRelation(snap Snapshot, name Name, searchPath []string) ResolvedRelation
func (ResolvedRelation) OK ¶
func (r ResolvedRelation) OK() bool
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
func LoadPostgresSnapshot ¶
func NewSnapshot ¶
func (Snapshot) FunctionsByName ¶
func (Snapshot) RelationsByUnqualifiedName ¶
type UnresolvedReason ¶
type UnresolvedReason uint8
const ( UnresolvedNone UnresolvedReason = iota UnresolvedMissing UnresolvedAmbiguous UnresolvedUnsupported UnresolvedCatalogError )
func (UnresolvedReason) String ¶
func (r UnresolvedReason) String() string
Click to show internal directories.
Click to hide internal directories.