Documentation ¶
Index ¶
- type MockVTGateService
- func (_m *MockVTGateService) Begin(ctx context.Context) (*vtgate.Session, error)
- func (_m *MockVTGateService) Commit(ctx context.Context, session *vtgate.Session) error
- func (_m *MockVTGateService) EXPECT() *_MockVTGateServiceRecorder
- func (_m *MockVTGateService) Execute(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) (*sqltypes.Result, error)
- func (_m *MockVTGateService) ExecuteBatchKeyspaceIds(ctx context.Context, queries []*vtgate.BoundKeyspaceIdQuery, ...) ([]sqltypes.Result, error)
- func (_m *MockVTGateService) ExecuteBatchShards(ctx context.Context, queries []*vtgate.BoundShardQuery, ...) ([]sqltypes.Result, error)
- func (_m *MockVTGateService) ExecuteEntityIds(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) (*sqltypes.Result, error)
- func (_m *MockVTGateService) ExecuteKeyRanges(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) (*sqltypes.Result, error)
- func (_m *MockVTGateService) ExecuteKeyspaceIds(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) (*sqltypes.Result, error)
- func (_m *MockVTGateService) ExecuteShards(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) (*sqltypes.Result, error)
- func (_m *MockVTGateService) GetSrvKeyspace(ctx context.Context, keyspace string) (*topodata.SrvKeyspace, error)
- func (_m *MockVTGateService) GetSrvShard(ctx context.Context, keyspace string, shard string) (*topodata.SrvShard, error)
- func (_m *MockVTGateService) HandlePanic(err *error)
- func (_m *MockVTGateService) Rollback(ctx context.Context, session *vtgate.Session) error
- func (_m *MockVTGateService) SplitQuery(ctx context.Context, keyspace string, sql string, ...) ([]*vtgate.SplitQueryResponse_Part, error)
- func (_m *MockVTGateService) SplitQueryV2(ctx context.Context, keyspace string, sql string, ...) ([]*vtgate.SplitQueryResponse_Part, error)
- func (_m *MockVTGateService) StreamExecute(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) error
- func (_m *MockVTGateService) StreamExecuteKeyRanges(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) error
- func (_m *MockVTGateService) StreamExecuteKeyspaceIds(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) error
- func (_m *MockVTGateService) StreamExecuteShards(ctx context.Context, sql string, bindVariables map[string]interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockVTGateService ¶
type MockVTGateService struct {
// contains filtered or unexported fields
}
Mock of VTGateService interface
func NewMockVTGateService ¶
func NewMockVTGateService(ctrl *gomock.Controller) *MockVTGateService
func (*MockVTGateService) EXPECT ¶
func (_m *MockVTGateService) EXPECT() *_MockVTGateServiceRecorder
func (*MockVTGateService) ExecuteBatchKeyspaceIds ¶
func (_m *MockVTGateService) ExecuteBatchKeyspaceIds(ctx context.Context, queries []*vtgate.BoundKeyspaceIdQuery, tabletType topodata.TabletType, asTransaction bool, session *vtgate.Session) ([]sqltypes.Result, error)
func (*MockVTGateService) ExecuteBatchShards ¶
func (_m *MockVTGateService) ExecuteBatchShards(ctx context.Context, queries []*vtgate.BoundShardQuery, tabletType topodata.TabletType, asTransaction bool, session *vtgate.Session) ([]sqltypes.Result, error)
func (*MockVTGateService) ExecuteEntityIds ¶
func (_m *MockVTGateService) ExecuteEntityIds(ctx context.Context, sql string, bindVariables map[string]interface{}, keyspace string, entityColumnName string, entityKeyspaceIDs []*vtgate.ExecuteEntityIdsRequest_EntityId, tabletType topodata.TabletType, session *vtgate.Session, notInTransaction bool) (*sqltypes.Result, error)
func (*MockVTGateService) ExecuteKeyRanges ¶
func (*MockVTGateService) ExecuteKeyspaceIds ¶
func (*MockVTGateService) ExecuteShards ¶
func (*MockVTGateService) GetSrvKeyspace ¶
func (_m *MockVTGateService) GetSrvKeyspace(ctx context.Context, keyspace string) (*topodata.SrvKeyspace, error)
func (*MockVTGateService) GetSrvShard ¶
func (*MockVTGateService) HandlePanic ¶
func (_m *MockVTGateService) HandlePanic(err *error)
func (*MockVTGateService) SplitQuery ¶
func (*MockVTGateService) SplitQueryV2 ¶
func (_m *MockVTGateService) SplitQueryV2(ctx context.Context, keyspace string, sql string, bindVariables map[string]interface{}, splitColumns []string, splitCount int64, numRowsPerQueryPart int64, algorithm query.SplitQueryRequest_Algorithm) ([]*vtgate.SplitQueryResponse_Part, error)
func (*MockVTGateService) StreamExecute ¶
func (*MockVTGateService) StreamExecuteKeyRanges ¶
func (*MockVTGateService) StreamExecuteKeyspaceIds ¶
func (*MockVTGateService) StreamExecuteShards ¶
Click to show internal directories.
Click to hide internal directories.