Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
Connect(ctx context.Context) error
IsClosed() bool
Close(ctx context.Context) error
ReceiveMessage(ctx context.Context) (pgproto3.BackendMessage, error)
Frontend() *pgproto3.Frontend
Exec(ctx context.Context, sql string) *pgconn.MultiResultReader
}
func NewConnection ¶
func NewConnection(ctx context.Context, dsn string) (Connection, error)
func NewConnectionTemplate ¶
func NewConnectionTemplate(dsn string) Connection
type IdentifySystemResult ¶
type IdentifySystemResult struct {
SystemID string
Database string
Timeline int32
// contains filtered or unexported fields
}
func IdentifySystem ¶
func IdentifySystem(ctx context.Context, conn Connection) (IdentifySystemResult, error)
func ParseIdentifySystem ¶
func ParseIdentifySystem(mrr *pgconn.MultiResultReader) (IdentifySystemResult, error)
func (*IdentifySystemResult) LoadXLogPos ¶
func (isr *IdentifySystemResult) LoadXLogPos() LSN
func (*IdentifySystemResult) SetXLogPos ¶
func (isr *IdentifySystemResult) SetXLogPos(l LSN)
func (*IdentifySystemResult) UpdateXLogPos ¶
func (isr *IdentifySystemResult) UpdateXLogPos(l LSN)
Click to show internal directories.
Click to hide internal directories.