Documentation ¶
Index ¶
- func InitDataResourceManager()
- type DB
- type DataSourceManager
- func (resourceManager DataSourceManager) BranchCommit(branchType meta.BranchType, xid string, branchId int64, resourceId string, ...) (meta.BranchStatus, error)
- func (resourceManager DataSourceManager) BranchRollback(branchType meta.BranchType, xid string, branchId int64, resourceId string, ...) (meta.BranchStatus, error)
- func (resourceManager DataSourceManager) GetBranchType() meta.BranchType
- func (resourceManager DataSourceManager) LockQuery(branchType meta.BranchType, resourceId string, xid string, lockKeys string) (bool, error)
- type DeleteExecutor
- func (executor *DeleteExecutor) AfterImage() (*schema.TableRecords, error)
- func (executor *DeleteExecutor) BeforeImage() (*schema.TableRecords, error)
- func (executor *DeleteExecutor) Execute() (sql.Result, error)
- func (executor *DeleteExecutor) PrepareUndoLog(beforeImage, afterImage *schema.TableRecords)
- type InsertExecutor
- func (executor *InsertExecutor) AfterImage(result sql.Result) (*schema.TableRecords, error)
- func (executor *InsertExecutor) BeforeImage() (*schema.TableRecords, error)
- func (executor *InsertExecutor) BuildTableRecords(pkValues []interface{}) (*schema.TableRecords, error)
- func (executor *InsertExecutor) Execute() (sql.Result, error)
- func (executor *InsertExecutor) GetColumnLen() int
- func (executor *InsertExecutor) GetPkIndex() int
- func (executor *InsertExecutor) GetPkValuesByColumn() []interface{}
- func (executor *InsertExecutor) PrepareUndoLog(beforeImage, afterImage *schema.TableRecords)
- type SelectForUpdateExecutor
- type Tx
- type UpdateExecutor
- func (executor *UpdateExecutor) AfterImage(beforeImage *schema.TableRecords) (*schema.TableRecords, error)
- func (executor *UpdateExecutor) BeforeImage() (*schema.TableRecords, error)
- func (executor *UpdateExecutor) Execute() (sql.Result, error)
- func (executor *UpdateExecutor) PrepareUndoLog(beforeImage, afterImage *schema.TableRecords)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDataResourceManager ¶
func InitDataResourceManager()
Types ¶
type DB ¶
func (*DB) GetBranchType ¶
func (db *DB) GetBranchType() meta.BranchType
func (*DB) GetResourceGroupId ¶
func (*DB) GetResourceId ¶
type DataSourceManager ¶
type DataSourceManager struct {
rm.AbstractResourceManager
}
func (DataSourceManager) BranchCommit ¶
func (resourceManager DataSourceManager) BranchCommit(branchType meta.BranchType, xid string, branchId int64, resourceId string, applicationData []byte) (meta.BranchStatus, error)
func (DataSourceManager) BranchRollback ¶
func (resourceManager DataSourceManager) BranchRollback(branchType meta.BranchType, xid string, branchId int64, resourceId string, applicationData []byte) (meta.BranchStatus, error)
func (DataSourceManager) GetBranchType ¶
func (resourceManager DataSourceManager) GetBranchType() meta.BranchType
func (DataSourceManager) LockQuery ¶
func (resourceManager DataSourceManager) LockQuery(branchType meta.BranchType, resourceId string, xid string, lockKeys string) (bool, error)
type DeleteExecutor ¶
type DeleteExecutor struct {
// contains filtered or unexported fields
}
func (*DeleteExecutor) AfterImage ¶
func (executor *DeleteExecutor) AfterImage() (*schema.TableRecords, error)
func (*DeleteExecutor) BeforeImage ¶
func (executor *DeleteExecutor) BeforeImage() (*schema.TableRecords, error)
func (*DeleteExecutor) PrepareUndoLog ¶
func (executor *DeleteExecutor) PrepareUndoLog(beforeImage, afterImage *schema.TableRecords)
type InsertExecutor ¶
type InsertExecutor struct {
// contains filtered or unexported fields
}
func (*InsertExecutor) AfterImage ¶
func (executor *InsertExecutor) AfterImage(result sql.Result) (*schema.TableRecords, error)
func (*InsertExecutor) BeforeImage ¶
func (executor *InsertExecutor) BeforeImage() (*schema.TableRecords, error)
func (*InsertExecutor) BuildTableRecords ¶
func (executor *InsertExecutor) BuildTableRecords(pkValues []interface{}) (*schema.TableRecords, error)
func (*InsertExecutor) GetColumnLen ¶
func (executor *InsertExecutor) GetColumnLen() int
func (*InsertExecutor) GetPkIndex ¶
func (executor *InsertExecutor) GetPkIndex() int
func (*InsertExecutor) GetPkValuesByColumn ¶
func (executor *InsertExecutor) GetPkValuesByColumn() []interface{}
func (*InsertExecutor) PrepareUndoLog ¶
func (executor *InsertExecutor) PrepareUndoLog(beforeImage, afterImage *schema.TableRecords)
type SelectForUpdateExecutor ¶
type SelectForUpdateExecutor struct {
// contains filtered or unexported fields
}
type UpdateExecutor ¶
type UpdateExecutor struct {
// contains filtered or unexported fields
}
func (*UpdateExecutor) AfterImage ¶
func (executor *UpdateExecutor) AfterImage(beforeImage *schema.TableRecords) (*schema.TableRecords, error)
func (*UpdateExecutor) BeforeImage ¶
func (executor *UpdateExecutor) BeforeImage() (*schema.TableRecords, error)
func (*UpdateExecutor) PrepareUndoLog ¶
func (executor *UpdateExecutor) PrepareUndoLog(beforeImage, afterImage *schema.TableRecords)
Click to show internal directories.
Click to hide internal directories.