Documentation
¶
Index ¶
Constants ¶
View Source
const ( ReplicaIdentityDefault ReplicaIdentity = 'd' ReplicaIdentityNothing ReplicaIdentity = 'n' ReplicaIdentityIndex ReplicaIdentity = 'i' ReplicaIdentityFull ReplicaIdentity = 'f' TupleNull TupleKind = 'n' // Identifies the data as NULL value. TupleUnchanged TupleKind = 'u' // Identifies unchanged TOASTed value (the actual value is not sent). TupleText TupleKind = 't' // Identifies the data as text formatted value. MsgInsert MType = iota MsgUpdate MsgDelete MsgBegin MsgCommit MsgRelation MsgType MsgOrigin MsgTruncate )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Begin ¶
type Commit ¶
type Delete ¶
type Insert ¶
type NamespacedName ¶
func (NamespacedName) Sanitize ¶
func (n NamespacedName) Sanitize() string
func (NamespacedName) String ¶
func (n NamespacedName) String() string
type Origin ¶
type Relation ¶
type Relation struct {
NamespacedName `yaml:"NamespacedName"`
OID dbtypes.OID `yaml:"OID"` // OID of the relation.
ReplicaIdentity ReplicaIdentity `yaml:"ReplicaIdentity"` // Replica identity
Columns []Column `yaml:"Columns"` // Columns
}
type ReplicaIdentity ¶
type ReplicaIdentity uint8
func (*ReplicaIdentity) DecodeText ¶
func (r *ReplicaIdentity) DecodeText(ci *pgtype.ConnInfo, src []byte) error
func (ReplicaIdentity) MarshalYAML ¶
func (r ReplicaIdentity) MarshalYAML() (interface{}, error)
func (ReplicaIdentity) String ¶
func (r ReplicaIdentity) String() string
func (*ReplicaIdentity) UnmarshalYAML ¶
func (r *ReplicaIdentity) UnmarshalYAML(unmarshal func(interface{}) error) error
type Type ¶
type Type struct {
NamespacedName
OID dbtypes.OID // OID of the data type
}
type Update ¶
type Update struct {
RelationOID dbtypes.OID // OID of the relation corresponding to the OID in the relation message.
IsKey bool // OldRow contains columns which are part of REPLICA IDENTITY index.
IsOld bool // OldRow contains old tuple in case of REPLICA IDENTITY set to FULL
IsNew bool // Identifies tuple as a new tuple.
OldRow Row
NewRow Row
}
Click to show internal directories.
Click to hide internal directories.