Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionKind ¶
type ActionKind string
ActionKind is the kind of RowAction
const ( Insert ActionKind = "INSERT" Update ActionKind = "UPDATE" Delete ActionKind = "DELETE" )
type Relation ¶
func (*Relation) ColumnNames ¶
func (*Relation) IdentityColumnIndices ¶
func (*Relation) IdentityColumnNames ¶
func (*Relation) IdentityColumns ¶
func (*Relation) NotIdentityColumns ¶
type RowAction ¶
type RowAction struct {
*Relation
Kind ActionKind
ChangesRowIdentity bool
RowIdentityBefore []*Value
NewValues []*Value
}
RowAction records a change to a row Kind identifies the type of change (INSERT, UPDATE, DELETE) ChangesRowIdentity is set true when postgres reports that an UPDATE has changed the row identity (key) RowIdentityBefore and NewValues are both arrays of values, the length of these arrays must be equal to the number of columns in the Relation. RowIdentityBefore holds the row identity values for the row before this action.
Non-identity columns are set to nil.
NewValues holds the values for the row after this action. It is nil for DELETE actions.
func (*RowAction) AfterActionRowIdentity ¶
func (*RowAction) BeforeActionRowIdentity ¶
Click to show internal directories.
Click to hide internal directories.