Documentation ¶
Index ¶
- type ChangeLog
- type ConnectionInfoRow
- type DBTX
- type DatabaseInfoRow
- type EnumSwitchoverState
- type ForeignKeyRefsRow
- type NullEnumSwitchoverState
- type PgStatActivity
- type Queries
- func (q *Queries) ActiveTxCount(ctx context.Context, xactStart pgtype.Timestamptz) (int64, error)
- func (q *Queries) ConnectionInfo(ctx context.Context) ([]ConnectionInfoRow, error)
- func (q *Queries) DatabaseInfo(ctx context.Context) (DatabaseInfoRow, error)
- func (q *Queries) DisableChangeLogTriggers(ctx context.Context) error
- func (q *Queries) EnableChangeLogTriggers(ctx context.Context) error
- func (q *Queries) ForeignKeyRefs(ctx context.Context) ([]ForeignKeyRefsRow, error)
- func (q *Queries) LastLogID(ctx context.Context) (int64, error)
- func (q *Queries) LogEvents(ctx context.Context, id int64) ([]SwitchoverLog, error)
- func (q *Queries) Now(ctx context.Context) (pgtype.Timestamptz, error)
- func (q *Queries) SWOConnLock(ctx context.Context) (bool, error)
- func (q *Queries) SWOConnUnlockAll(ctx context.Context) error
- func (q *Queries) SequenceNames(ctx context.Context) ([]string, error)
- func (q *Queries) TableColumns(ctx context.Context) ([]TableColumnsRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SwitchoverLog
- type SwitchoverState
- type TableColumnsRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionInfoRow ¶
type DatabaseInfoRow ¶
type EnumSwitchoverState ¶
type EnumSwitchoverState string
const ( EnumSwitchoverStateIdle EnumSwitchoverState = "idle" EnumSwitchoverStateInProgress EnumSwitchoverState = "in_progress" EnumSwitchoverStateUseNextDb EnumSwitchoverState = "use_next_db" )
func (*EnumSwitchoverState) Scan ¶
func (e *EnumSwitchoverState) Scan(src interface{}) error
type ForeignKeyRefsRow ¶
type NullEnumSwitchoverState ¶
type NullEnumSwitchoverState struct { EnumSwitchoverState EnumSwitchoverState Valid bool // Valid is true if EnumSwitchoverState is not NULL }
func (*NullEnumSwitchoverState) Scan ¶
func (ns *NullEnumSwitchoverState) Scan(value interface{}) error
Scan implements the Scanner interface.
type PgStatActivity ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ActiveTxCount ¶
func (*Queries) ConnectionInfo ¶
func (q *Queries) ConnectionInfo(ctx context.Context) ([]ConnectionInfoRow, error)
func (*Queries) DatabaseInfo ¶
func (q *Queries) DatabaseInfo(ctx context.Context) (DatabaseInfoRow, error)
func (*Queries) DisableChangeLogTriggers ¶
func (*Queries) EnableChangeLogTriggers ¶
func (*Queries) ForeignKeyRefs ¶
func (q *Queries) ForeignKeyRefs(ctx context.Context) ([]ForeignKeyRefsRow, error)
func (*Queries) SWOConnLock ¶ added in v0.33.0
func (*Queries) SWOConnUnlockAll ¶ added in v0.33.0
func (*Queries) SequenceNames ¶
func (*Queries) TableColumns ¶
func (q *Queries) TableColumns(ctx context.Context) ([]TableColumnsRow, error)
type SwitchoverLog ¶
type SwitchoverLog struct { ID int64 Timestamp pgtype.Timestamptz Data []byte }
type SwitchoverState ¶
type SwitchoverState struct { Ok bool CurrentState EnumSwitchoverState DbID pgtype.UUID }
Click to show internal directories.
Click to hide internal directories.