Documentation ¶
Index ¶
- Constants
- type DoubleWritePool
- func (d *DoubleWritePool) BeginTx(ctx context.Context, opts *sql.TxOptions) (gorm.ConnPool, error)
- func (d *DoubleWritePool) ChangePattern(pattern string)
- func (d *DoubleWritePool) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (d *DoubleWritePool) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
- func (d *DoubleWritePool) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (d *DoubleWritePool) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- type DoubleWriteTx
- func (d *DoubleWriteTx) Commit() error
- func (d *DoubleWriteTx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (d *DoubleWriteTx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
- func (d *DoubleWriteTx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (d *DoubleWriteTx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (d *DoubleWriteTx) Rollback() error
Constants ¶
View Source
const ( PatternSrcOnly = "SRC_ONLY" PatternSrcFirst = "SRC_FIRST" PatternDstFirst = "DST_FIRST" PatternDstOnly = "DST_ONLY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoubleWritePool ¶
type DoubleWritePool struct {
// contains filtered or unexported fields
}
func NewDoubleWritePool ¶
func (*DoubleWritePool) ChangePattern ¶
func (d *DoubleWritePool) ChangePattern(pattern string)
func (*DoubleWritePool) ExecContext ¶
func (*DoubleWritePool) PrepareContext ¶
func (*DoubleWritePool) QueryContext ¶
func (*DoubleWritePool) QueryRowContext ¶
type DoubleWriteTx ¶
type DoubleWriteTx struct {
// contains filtered or unexported fields
}
func (*DoubleWriteTx) Commit ¶
func (d *DoubleWriteTx) Commit() error
func (*DoubleWriteTx) ExecContext ¶
func (*DoubleWriteTx) PrepareContext ¶
func (*DoubleWriteTx) QueryContext ¶
func (*DoubleWriteTx) QueryRowContext ¶
func (*DoubleWriteTx) Rollback ¶
func (d *DoubleWriteTx) Rollback() error
Click to show internal directories.
Click to hide internal directories.