Documentation
¶
Index ¶
- Constants
- type Begin
- type Column
- type Commit
- type Delete
- type DumpInfo
- type Insert
- type MType
- type Message
- type NamespacedName
- type Origin
- type RawMessage
- type Relation
- func (rel *Relation) Equals(rel2 *Relation) bool
- func (rel *Relation) FetchByName(conn queryRunner, tableName NamespacedName) error
- func (rel *Relation) FetchByOID(conn queryRunner, oid dbutils.OID) error
- func (Relation) MsgType() MType
- func (rel Relation) SQL(oldRel Relation) string
- func (m Relation) String() string
- func (rel Relation) Structure() string
- type ReplicaIdentity
- type Truncate
- type TupleData
- type TupleKind
- type Type
- type Update
Constants ¶
View Source
const ( ReplicaIdentityDefault ReplicaIdentity = 'd' ReplicaIdentityNothing = 'n' ReplicaIdentityIndex = 'i' ReplicaIdentityFull = 'f' TupleNull TupleKind = 'n' // Identifies the data as NULL value. TupleUnchanged = 'u' // Identifies unchanged TOASTed value (the actual value is not sent). TupleText = '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 Delete struct { RawMessage RelationOID dbutils.OID // OID of the relation corresponding to the OID in the relation message. Ident []TupleData // Key or old row values IdentIsKey bool // Whether Ident is key }
type Insert ¶
type Insert struct { RawMessage RelationOID dbutils.OID // OID of the relation corresponding to the OID in the relation message. NewRow []TupleData }
type NamespacedName ¶
func (NamespacedName) Sanitize ¶
func (n NamespacedName) Sanitize() string
func (NamespacedName) String ¶
func (n NamespacedName) String() string
type Origin ¶
type Origin struct { RawMessage LSN dbutils.LSN // The last LSN of the commit on the origin server. Name string }
type RawMessage ¶
func (RawMessage) RawData ¶
func (m RawMessage) RawData() []byte
type Relation ¶
type Relation struct { RawMessage NamespacedName `yaml:"NamespacedName"` OID dbutils.OID `yaml:"OID"` // OID of the relation. ReplicaIdentity ReplicaIdentity `yaml:"ReplicaIdentity"` // Replica identity Columns []Column `yaml:"Columns"` // Columns }
func (*Relation) FetchByName ¶
func (rel *Relation) FetchByName(conn queryRunner, tableName NamespacedName) error
FetchByName fetches relation info from the database by name
func (*Relation) FetchByOID ¶
FetchByOID fetches relation info from the database by oid
type ReplicaIdentity ¶
type ReplicaIdentity uint8
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 Truncate ¶
type Truncate struct { RawMessage Cascade bool RestartIdentity bool RelationOIDs []dbutils.OID }
type Type ¶
type Type struct { RawMessage NamespacedName OID dbutils.OID // OID of the data type }
Click to show internal directories.
Click to hide internal directories.