Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/pingcap/tidb/pkg/util/sqlexec (interfaces: RestrictedSQLExecutor)
Generated by this command:
mockgen -package mock github.com/pingcap/tidb/pkg/util/sqlexec RestrictedSQLExecutor
Package mock is a generated GoMock package.
Index ¶
- type MockRestrictedSQLExecutor
- func (m *MockRestrictedSQLExecutor) EXPECT() *MockRestrictedSQLExecutorMockRecorder
- func (m *MockRestrictedSQLExecutor) ExecRestrictedSQL(arg0 context.Context, arg1 []func(*sqlexec.ExecOption), arg2 string, ...) ([]chunk.Row, []*ast.ResultField, error)
- func (m *MockRestrictedSQLExecutor) ExecRestrictedStmt(arg0 context.Context, arg1 ast.StmtNode, arg2 ...func(*sqlexec.ExecOption)) ([]chunk.Row, []*ast.ResultField, error)
- func (m *MockRestrictedSQLExecutor) ParseWithParams(arg0 context.Context, arg1 string, arg2 ...any) (ast.StmtNode, error)
- type MockRestrictedSQLExecutorMockRecorder
- func (mr *MockRestrictedSQLExecutorMockRecorder) ExecRestrictedSQL(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call
- func (mr *MockRestrictedSQLExecutorMockRecorder) ExecRestrictedStmt(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockRestrictedSQLExecutorMockRecorder) ParseWithParams(arg0, arg1 any, arg2 ...any) *gomock.Call
- type RestrictedSQLExecutorKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRestrictedSQLExecutor ¶
type MockRestrictedSQLExecutor struct {
// contains filtered or unexported fields
}
MockRestrictedSQLExecutor is a mock of RestrictedSQLExecutor interface.
func NewMockRestrictedSQLExecutor ¶
func NewMockRestrictedSQLExecutor(ctrl *gomock.Controller) *MockRestrictedSQLExecutor
NewMockRestrictedSQLExecutor creates a new mock instance.
func (*MockRestrictedSQLExecutor) EXPECT ¶
func (m *MockRestrictedSQLExecutor) EXPECT() *MockRestrictedSQLExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRestrictedSQLExecutor) ExecRestrictedSQL ¶
func (m *MockRestrictedSQLExecutor) ExecRestrictedSQL(arg0 context.Context, arg1 []func(*sqlexec.ExecOption), arg2 string, arg3 ...any) ([]chunk.Row, []*ast.ResultField, error)
ExecRestrictedSQL mocks base method.
func (*MockRestrictedSQLExecutor) ExecRestrictedStmt ¶
func (m *MockRestrictedSQLExecutor) ExecRestrictedStmt(arg0 context.Context, arg1 ast.StmtNode, arg2 ...func(*sqlexec.ExecOption)) ([]chunk.Row, []*ast.ResultField, error)
ExecRestrictedStmt mocks base method.
func (*MockRestrictedSQLExecutor) ParseWithParams ¶
func (m *MockRestrictedSQLExecutor) ParseWithParams(arg0 context.Context, arg1 string, arg2 ...any) (ast.StmtNode, error)
ParseWithParams mocks base method.
type MockRestrictedSQLExecutorMockRecorder ¶
type MockRestrictedSQLExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockRestrictedSQLExecutorMockRecorder is the mock recorder for MockRestrictedSQLExecutor.
func (*MockRestrictedSQLExecutorMockRecorder) ExecRestrictedSQL ¶
func (mr *MockRestrictedSQLExecutorMockRecorder) ExecRestrictedSQL(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call
ExecRestrictedSQL indicates an expected call of ExecRestrictedSQL.
func (*MockRestrictedSQLExecutorMockRecorder) ExecRestrictedStmt ¶
func (mr *MockRestrictedSQLExecutorMockRecorder) ExecRestrictedStmt(arg0, arg1 any, arg2 ...any) *gomock.Call
ExecRestrictedStmt indicates an expected call of ExecRestrictedStmt.
func (*MockRestrictedSQLExecutorMockRecorder) ParseWithParams ¶
func (mr *MockRestrictedSQLExecutorMockRecorder) ParseWithParams(arg0, arg1 any, arg2 ...any) *gomock.Call
ParseWithParams indicates an expected call of ParseWithParams.
type RestrictedSQLExecutorKey ¶
type RestrictedSQLExecutorKey struct{}
RestrictedSQLExecutorKey is the key to represent MockRestrictedSQLExecutorMockRecorder in ctx.
func (RestrictedSQLExecutorKey) String ¶
func (RestrictedSQLExecutorKey) String() string
String implements the string.Stringer interface.