Documentation
¶
Index ¶
- type Querier
- func (m *Querier) Close(ctx context.Context) error
- func (m *Querier) Exec(ctx context.Context, query string, args ...any) (postgres.CommandTag, error)
- func (m *Querier) Query(ctx context.Context, query string, args ...any) (postgres.Rows, error)
- func (m *Querier) QueryRow(ctx context.Context, query string, args ...any) postgres.Row
- type ReplicationConn
- func (m *ReplicationConn) Close(ctx context.Context) error
- func (m *ReplicationConn) IdentifySystem(ctx context.Context) (postgres.IdentifySystemResult, error)
- func (m *ReplicationConn) ReceiveMessage(ctx context.Context) (*postgres.ReplicationMessage, error)
- func (m *ReplicationConn) SendStandbyStatusUpdate(ctx context.Context, lsn uint64) error
- func (m *ReplicationConn) StartReplication(ctx context.Context, cfg postgres.ReplicationConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Querier ¶
type Querier struct { QueryRowFn func(ctx context.Context, query string, args ...any) postgres.Row QueryFn func(ctx context.Context, query string, args ...any) (postgres.Rows, error) ExecFn func(context.Context, string, ...any) (postgres.CommandTag, error) CloseFn func(context.Context) error }
type ReplicationConn ¶
type ReplicationConn struct { IdentifySystemFn func(ctx context.Context) (postgres.IdentifySystemResult, error) StartReplicationFn func(ctx context.Context, cfg postgres.ReplicationConfig) error SendStandbyStatusUpdateFn func(ctx context.Context, lsn uint64) error ReceiveMessageFn func(ctx context.Context) (*postgres.ReplicationMessage, error) CloseFn func(ctx context.Context) error }
func (*ReplicationConn) IdentifySystem ¶
func (m *ReplicationConn) IdentifySystem(ctx context.Context) (postgres.IdentifySystemResult, error)
func (*ReplicationConn) ReceiveMessage ¶
func (m *ReplicationConn) ReceiveMessage(ctx context.Context) (*postgres.ReplicationMessage, error)
func (*ReplicationConn) SendStandbyStatusUpdate ¶
func (m *ReplicationConn) SendStandbyStatusUpdate(ctx context.Context, lsn uint64) error
func (*ReplicationConn) StartReplication ¶
func (m *ReplicationConn) StartReplication(ctx context.Context, cfg postgres.ReplicationConfig) error
Click to show internal directories.
Click to hide internal directories.