github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/test/mock_depends_kit_sqlx/database.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ../depends/kit/sqlx/database.go
     3  
     4  // Package mock_sqlx is a generated GoMock package.
     5  package mock_sqlx
     6  
     7  import (
     8  	context "context"
     9  	sql "database/sql"
    10  	driver "database/sql/driver"
    11  	reflect "reflect"
    12  
    13  	gomock "github.com/golang/mock/gomock"
    14  
    15  	sqlx "github.com/machinefi/w3bstream/pkg/depends/kit/sqlx"
    16  	builder "github.com/machinefi/w3bstream/pkg/depends/kit/sqlx/builder"
    17  )
    18  
    19  // MockDBExecutor is a mock of DBExecutor interface.
    20  type MockDBExecutor struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockDBExecutorMockRecorder
    23  }
    24  
    25  // MockDBExecutorMockRecorder is the mock recorder for MockDBExecutor.
    26  type MockDBExecutorMockRecorder struct {
    27  	mock *MockDBExecutor
    28  }
    29  
    30  // NewMockDBExecutor creates a new mock instance.
    31  func NewMockDBExecutor(ctrl *gomock.Controller) *MockDBExecutor {
    32  	mock := &MockDBExecutor{ctrl: ctrl}
    33  	mock.recorder = &MockDBExecutorMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockDBExecutor) EXPECT() *MockDBExecutorMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // Context mocks base method.
    43  func (m *MockDBExecutor) Context() context.Context {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "Context")
    46  	ret0, _ := ret[0].(context.Context)
    47  	return ret0
    48  }
    49  
    50  // Context indicates an expected call of Context.
    51  func (mr *MockDBExecutorMockRecorder) Context() *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockDBExecutor)(nil).Context))
    54  }
    55  
    56  // D mocks base method.
    57  func (m *MockDBExecutor) D() *sqlx.Database {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "D")
    60  	ret0, _ := ret[0].(*sqlx.Database)
    61  	return ret0
    62  }
    63  
    64  // D indicates an expected call of D.
    65  func (mr *MockDBExecutorMockRecorder) D() *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "D", reflect.TypeOf((*MockDBExecutor)(nil).D))
    68  }
    69  
    70  // Dialect mocks base method.
    71  func (m *MockDBExecutor) Dialect() builder.Dialect {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "Dialect")
    74  	ret0, _ := ret[0].(builder.Dialect)
    75  	return ret0
    76  }
    77  
    78  // Dialect indicates an expected call of Dialect.
    79  func (mr *MockDBExecutorMockRecorder) Dialect() *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Dialect", reflect.TypeOf((*MockDBExecutor)(nil).Dialect))
    82  }
    83  
    84  // Exec mocks base method.
    85  func (m *MockDBExecutor) Exec(arg0 builder.SqlExpr) (sql.Result, error) {
    86  	m.ctrl.T.Helper()
    87  	ret := m.ctrl.Call(m, "Exec", arg0)
    88  	ret0, _ := ret[0].(sql.Result)
    89  	ret1, _ := ret[1].(error)
    90  	return ret0, ret1
    91  }
    92  
    93  // Exec indicates an expected call of Exec.
    94  func (mr *MockDBExecutorMockRecorder) Exec(arg0 interface{}) *gomock.Call {
    95  	mr.mock.ctrl.T.Helper()
    96  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockDBExecutor)(nil).Exec), arg0)
    97  }
    98  
    99  // ExecContext mocks base method.
   100  func (m *MockDBExecutor) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) {
   101  	m.ctrl.T.Helper()
   102  	varargs := []interface{}{ctx, query}
   103  	for _, a := range args {
   104  		varargs = append(varargs, a)
   105  	}
   106  	ret := m.ctrl.Call(m, "ExecContext", varargs...)
   107  	ret0, _ := ret[0].(sql.Result)
   108  	ret1, _ := ret[1].(error)
   109  	return ret0, ret1
   110  }
   111  
   112  // ExecContext indicates an expected call of ExecContext.
   113  func (mr *MockDBExecutorMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	varargs := append([]interface{}{ctx, query}, args...)
   116  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecContext", reflect.TypeOf((*MockDBExecutor)(nil).ExecContext), varargs...)
   117  }
   118  
   119  // Query mocks base method.
   120  func (m *MockDBExecutor) Query(arg0 builder.SqlExpr) (*sql.Rows, error) {
   121  	m.ctrl.T.Helper()
   122  	ret := m.ctrl.Call(m, "Query", arg0)
   123  	ret0, _ := ret[0].(*sql.Rows)
   124  	ret1, _ := ret[1].(error)
   125  	return ret0, ret1
   126  }
   127  
   128  // Query indicates an expected call of Query.
   129  func (mr *MockDBExecutorMockRecorder) Query(arg0 interface{}) *gomock.Call {
   130  	mr.mock.ctrl.T.Helper()
   131  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockDBExecutor)(nil).Query), arg0)
   132  }
   133  
   134  // QueryAndScan mocks base method.
   135  func (m *MockDBExecutor) QueryAndScan(arg0 builder.SqlExpr, arg1 interface{}) error {
   136  	m.ctrl.T.Helper()
   137  	ret := m.ctrl.Call(m, "QueryAndScan", arg0, arg1)
   138  	ret0, _ := ret[0].(error)
   139  	return ret0
   140  }
   141  
   142  // QueryAndScan indicates an expected call of QueryAndScan.
   143  func (mr *MockDBExecutorMockRecorder) QueryAndScan(arg0, arg1 interface{}) *gomock.Call {
   144  	mr.mock.ctrl.T.Helper()
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryAndScan", reflect.TypeOf((*MockDBExecutor)(nil).QueryAndScan), arg0, arg1)
   146  }
   147  
   148  // QueryContext mocks base method.
   149  func (m *MockDBExecutor) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) {
   150  	m.ctrl.T.Helper()
   151  	varargs := []interface{}{ctx, query}
   152  	for _, a := range args {
   153  		varargs = append(varargs, a)
   154  	}
   155  	ret := m.ctrl.Call(m, "QueryContext", varargs...)
   156  	ret0, _ := ret[0].(*sql.Rows)
   157  	ret1, _ := ret[1].(error)
   158  	return ret0, ret1
   159  }
   160  
   161  // QueryContext indicates an expected call of QueryContext.
   162  func (mr *MockDBExecutorMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call {
   163  	mr.mock.ctrl.T.Helper()
   164  	varargs := append([]interface{}{ctx, query}, args...)
   165  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryContext", reflect.TypeOf((*MockDBExecutor)(nil).QueryContext), varargs...)
   166  }
   167  
   168  // T mocks base method.
   169  func (m *MockDBExecutor) T(model builder.Model) *builder.Table {
   170  	m.ctrl.T.Helper()
   171  	ret := m.ctrl.Call(m, "T", model)
   172  	ret0, _ := ret[0].(*builder.Table)
   173  	return ret0
   174  }
   175  
   176  // T indicates an expected call of T.
   177  func (mr *MockDBExecutorMockRecorder) T(model interface{}) *gomock.Call {
   178  	mr.mock.ctrl.T.Helper()
   179  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "T", reflect.TypeOf((*MockDBExecutor)(nil).T), model)
   180  }
   181  
   182  // WithContext mocks base method.
   183  func (m *MockDBExecutor) WithContext(ctx context.Context) sqlx.DBExecutor {
   184  	m.ctrl.T.Helper()
   185  	ret := m.ctrl.Call(m, "WithContext", ctx)
   186  	ret0, _ := ret[0].(sqlx.DBExecutor)
   187  	return ret0
   188  }
   189  
   190  // WithContext indicates an expected call of WithContext.
   191  func (mr *MockDBExecutorMockRecorder) WithContext(ctx interface{}) *gomock.Call {
   192  	mr.mock.ctrl.T.Helper()
   193  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithContext", reflect.TypeOf((*MockDBExecutor)(nil).WithContext), ctx)
   194  }
   195  
   196  // WithSchema mocks base method.
   197  func (m *MockDBExecutor) WithSchema(arg0 string) sqlx.DBExecutor {
   198  	m.ctrl.T.Helper()
   199  	ret := m.ctrl.Call(m, "WithSchema", arg0)
   200  	ret0, _ := ret[0].(sqlx.DBExecutor)
   201  	return ret0
   202  }
   203  
   204  // WithSchema indicates an expected call of WithSchema.
   205  func (mr *MockDBExecutorMockRecorder) WithSchema(arg0 interface{}) *gomock.Call {
   206  	mr.mock.ctrl.T.Helper()
   207  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithSchema", reflect.TypeOf((*MockDBExecutor)(nil).WithSchema), arg0)
   208  }
   209  
   210  // MockWithDBName is a mock of WithDBName interface.
   211  type MockWithDBName struct {
   212  	ctrl     *gomock.Controller
   213  	recorder *MockWithDBNameMockRecorder
   214  }
   215  
   216  // MockWithDBNameMockRecorder is the mock recorder for MockWithDBName.
   217  type MockWithDBNameMockRecorder struct {
   218  	mock *MockWithDBName
   219  }
   220  
   221  // NewMockWithDBName creates a new mock instance.
   222  func NewMockWithDBName(ctrl *gomock.Controller) *MockWithDBName {
   223  	mock := &MockWithDBName{ctrl: ctrl}
   224  	mock.recorder = &MockWithDBNameMockRecorder{mock}
   225  	return mock
   226  }
   227  
   228  // EXPECT returns an object that allows the caller to indicate expected use.
   229  func (m *MockWithDBName) EXPECT() *MockWithDBNameMockRecorder {
   230  	return m.recorder
   231  }
   232  
   233  // WithDBName mocks base method.
   234  func (m *MockWithDBName) WithDBName(arg0 string) driver.Connector {
   235  	m.ctrl.T.Helper()
   236  	ret := m.ctrl.Call(m, "WithDBName", arg0)
   237  	ret0, _ := ret[0].(driver.Connector)
   238  	return ret0
   239  }
   240  
   241  // WithDBName indicates an expected call of WithDBName.
   242  func (mr *MockWithDBNameMockRecorder) WithDBName(arg0 interface{}) *gomock.Call {
   243  	mr.mock.ctrl.T.Helper()
   244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithDBName", reflect.TypeOf((*MockWithDBName)(nil).WithDBName), arg0)
   245  }
   246  
   247  // MockSqlExecutor is a mock of SqlExecutor interface.
   248  type MockSqlExecutor struct {
   249  	ctrl     *gomock.Controller
   250  	recorder *MockSqlExecutorMockRecorder
   251  }
   252  
   253  // MockSqlExecutorMockRecorder is the mock recorder for MockSqlExecutor.
   254  type MockSqlExecutorMockRecorder struct {
   255  	mock *MockSqlExecutor
   256  }
   257  
   258  // NewMockSqlExecutor creates a new mock instance.
   259  func NewMockSqlExecutor(ctrl *gomock.Controller) *MockSqlExecutor {
   260  	mock := &MockSqlExecutor{ctrl: ctrl}
   261  	mock.recorder = &MockSqlExecutorMockRecorder{mock}
   262  	return mock
   263  }
   264  
   265  // EXPECT returns an object that allows the caller to indicate expected use.
   266  func (m *MockSqlExecutor) EXPECT() *MockSqlExecutorMockRecorder {
   267  	return m.recorder
   268  }
   269  
   270  // ExecContext mocks base method.
   271  func (m *MockSqlExecutor) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) {
   272  	m.ctrl.T.Helper()
   273  	varargs := []interface{}{ctx, query}
   274  	for _, a := range args {
   275  		varargs = append(varargs, a)
   276  	}
   277  	ret := m.ctrl.Call(m, "ExecContext", varargs...)
   278  	ret0, _ := ret[0].(sql.Result)
   279  	ret1, _ := ret[1].(error)
   280  	return ret0, ret1
   281  }
   282  
   283  // ExecContext indicates an expected call of ExecContext.
   284  func (mr *MockSqlExecutorMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call {
   285  	mr.mock.ctrl.T.Helper()
   286  	varargs := append([]interface{}{ctx, query}, args...)
   287  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecContext", reflect.TypeOf((*MockSqlExecutor)(nil).ExecContext), varargs...)
   288  }
   289  
   290  // QueryContext mocks base method.
   291  func (m *MockSqlExecutor) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) {
   292  	m.ctrl.T.Helper()
   293  	varargs := []interface{}{ctx, query}
   294  	for _, a := range args {
   295  		varargs = append(varargs, a)
   296  	}
   297  	ret := m.ctrl.Call(m, "QueryContext", varargs...)
   298  	ret0, _ := ret[0].(*sql.Rows)
   299  	ret1, _ := ret[1].(error)
   300  	return ret0, ret1
   301  }
   302  
   303  // QueryContext indicates an expected call of QueryContext.
   304  func (mr *MockSqlExecutorMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call {
   305  	mr.mock.ctrl.T.Helper()
   306  	varargs := append([]interface{}{ctx, query}, args...)
   307  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryContext", reflect.TypeOf((*MockSqlExecutor)(nil).QueryContext), varargs...)
   308  }
   309  
   310  // MockExprExecutor is a mock of ExprExecutor interface.
   311  type MockExprExecutor struct {
   312  	ctrl     *gomock.Controller
   313  	recorder *MockExprExecutorMockRecorder
   314  }
   315  
   316  // MockExprExecutorMockRecorder is the mock recorder for MockExprExecutor.
   317  type MockExprExecutorMockRecorder struct {
   318  	mock *MockExprExecutor
   319  }
   320  
   321  // NewMockExprExecutor creates a new mock instance.
   322  func NewMockExprExecutor(ctrl *gomock.Controller) *MockExprExecutor {
   323  	mock := &MockExprExecutor{ctrl: ctrl}
   324  	mock.recorder = &MockExprExecutorMockRecorder{mock}
   325  	return mock
   326  }
   327  
   328  // EXPECT returns an object that allows the caller to indicate expected use.
   329  func (m *MockExprExecutor) EXPECT() *MockExprExecutorMockRecorder {
   330  	return m.recorder
   331  }
   332  
   333  // Exec mocks base method.
   334  func (m *MockExprExecutor) Exec(arg0 builder.SqlExpr) (sql.Result, error) {
   335  	m.ctrl.T.Helper()
   336  	ret := m.ctrl.Call(m, "Exec", arg0)
   337  	ret0, _ := ret[0].(sql.Result)
   338  	ret1, _ := ret[1].(error)
   339  	return ret0, ret1
   340  }
   341  
   342  // Exec indicates an expected call of Exec.
   343  func (mr *MockExprExecutorMockRecorder) Exec(arg0 interface{}) *gomock.Call {
   344  	mr.mock.ctrl.T.Helper()
   345  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockExprExecutor)(nil).Exec), arg0)
   346  }
   347  
   348  // ExecContext mocks base method.
   349  func (m *MockExprExecutor) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) {
   350  	m.ctrl.T.Helper()
   351  	varargs := []interface{}{ctx, query}
   352  	for _, a := range args {
   353  		varargs = append(varargs, a)
   354  	}
   355  	ret := m.ctrl.Call(m, "ExecContext", varargs...)
   356  	ret0, _ := ret[0].(sql.Result)
   357  	ret1, _ := ret[1].(error)
   358  	return ret0, ret1
   359  }
   360  
   361  // ExecContext indicates an expected call of ExecContext.
   362  func (mr *MockExprExecutorMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call {
   363  	mr.mock.ctrl.T.Helper()
   364  	varargs := append([]interface{}{ctx, query}, args...)
   365  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecContext", reflect.TypeOf((*MockExprExecutor)(nil).ExecContext), varargs...)
   366  }
   367  
   368  // Query mocks base method.
   369  func (m *MockExprExecutor) Query(arg0 builder.SqlExpr) (*sql.Rows, error) {
   370  	m.ctrl.T.Helper()
   371  	ret := m.ctrl.Call(m, "Query", arg0)
   372  	ret0, _ := ret[0].(*sql.Rows)
   373  	ret1, _ := ret[1].(error)
   374  	return ret0, ret1
   375  }
   376  
   377  // Query indicates an expected call of Query.
   378  func (mr *MockExprExecutorMockRecorder) Query(arg0 interface{}) *gomock.Call {
   379  	mr.mock.ctrl.T.Helper()
   380  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockExprExecutor)(nil).Query), arg0)
   381  }
   382  
   383  // QueryAndScan mocks base method.
   384  func (m *MockExprExecutor) QueryAndScan(arg0 builder.SqlExpr, arg1 interface{}) error {
   385  	m.ctrl.T.Helper()
   386  	ret := m.ctrl.Call(m, "QueryAndScan", arg0, arg1)
   387  	ret0, _ := ret[0].(error)
   388  	return ret0
   389  }
   390  
   391  // QueryAndScan indicates an expected call of QueryAndScan.
   392  func (mr *MockExprExecutorMockRecorder) QueryAndScan(arg0, arg1 interface{}) *gomock.Call {
   393  	mr.mock.ctrl.T.Helper()
   394  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryAndScan", reflect.TypeOf((*MockExprExecutor)(nil).QueryAndScan), arg0, arg1)
   395  }
   396  
   397  // QueryContext mocks base method.
   398  func (m *MockExprExecutor) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) {
   399  	m.ctrl.T.Helper()
   400  	varargs := []interface{}{ctx, query}
   401  	for _, a := range args {
   402  		varargs = append(varargs, a)
   403  	}
   404  	ret := m.ctrl.Call(m, "QueryContext", varargs...)
   405  	ret0, _ := ret[0].(*sql.Rows)
   406  	ret1, _ := ret[1].(error)
   407  	return ret0, ret1
   408  }
   409  
   410  // QueryContext indicates an expected call of QueryContext.
   411  func (mr *MockExprExecutorMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call {
   412  	mr.mock.ctrl.T.Helper()
   413  	varargs := append([]interface{}{ctx, query}, args...)
   414  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryContext", reflect.TypeOf((*MockExprExecutor)(nil).QueryContext), varargs...)
   415  }
   416  
   417  // MockTableResolver is a mock of TableResolver interface.
   418  type MockTableResolver struct {
   419  	ctrl     *gomock.Controller
   420  	recorder *MockTableResolverMockRecorder
   421  }
   422  
   423  // MockTableResolverMockRecorder is the mock recorder for MockTableResolver.
   424  type MockTableResolverMockRecorder struct {
   425  	mock *MockTableResolver
   426  }
   427  
   428  // NewMockTableResolver creates a new mock instance.
   429  func NewMockTableResolver(ctrl *gomock.Controller) *MockTableResolver {
   430  	mock := &MockTableResolver{ctrl: ctrl}
   431  	mock.recorder = &MockTableResolverMockRecorder{mock}
   432  	return mock
   433  }
   434  
   435  // EXPECT returns an object that allows the caller to indicate expected use.
   436  func (m *MockTableResolver) EXPECT() *MockTableResolverMockRecorder {
   437  	return m.recorder
   438  }
   439  
   440  // T mocks base method.
   441  func (m *MockTableResolver) T(model builder.Model) *builder.Table {
   442  	m.ctrl.T.Helper()
   443  	ret := m.ctrl.Call(m, "T", model)
   444  	ret0, _ := ret[0].(*builder.Table)
   445  	return ret0
   446  }
   447  
   448  // T indicates an expected call of T.
   449  func (mr *MockTableResolverMockRecorder) T(model interface{}) *gomock.Call {
   450  	mr.mock.ctrl.T.Helper()
   451  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "T", reflect.TypeOf((*MockTableResolver)(nil).T), model)
   452  }
   453  
   454  // MockTxExecutor is a mock of TxExecutor interface.
   455  type MockTxExecutor struct {
   456  	ctrl     *gomock.Controller
   457  	recorder *MockTxExecutorMockRecorder
   458  }
   459  
   460  // MockTxExecutorMockRecorder is the mock recorder for MockTxExecutor.
   461  type MockTxExecutorMockRecorder struct {
   462  	mock *MockTxExecutor
   463  }
   464  
   465  // NewMockTxExecutor creates a new mock instance.
   466  func NewMockTxExecutor(ctrl *gomock.Controller) *MockTxExecutor {
   467  	mock := &MockTxExecutor{ctrl: ctrl}
   468  	mock.recorder = &MockTxExecutorMockRecorder{mock}
   469  	return mock
   470  }
   471  
   472  // EXPECT returns an object that allows the caller to indicate expected use.
   473  func (m *MockTxExecutor) EXPECT() *MockTxExecutorMockRecorder {
   474  	return m.recorder
   475  }
   476  
   477  // Begin mocks base method.
   478  func (m *MockTxExecutor) Begin() (sqlx.DBExecutor, error) {
   479  	m.ctrl.T.Helper()
   480  	ret := m.ctrl.Call(m, "Begin")
   481  	ret0, _ := ret[0].(sqlx.DBExecutor)
   482  	ret1, _ := ret[1].(error)
   483  	return ret0, ret1
   484  }
   485  
   486  // Begin indicates an expected call of Begin.
   487  func (mr *MockTxExecutorMockRecorder) Begin() *gomock.Call {
   488  	mr.mock.ctrl.T.Helper()
   489  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Begin", reflect.TypeOf((*MockTxExecutor)(nil).Begin))
   490  }
   491  
   492  // BeginTx mocks base method.
   493  func (m *MockTxExecutor) BeginTx(arg0 *sql.TxOptions) (sqlx.DBExecutor, error) {
   494  	m.ctrl.T.Helper()
   495  	ret := m.ctrl.Call(m, "BeginTx", arg0)
   496  	ret0, _ := ret[0].(sqlx.DBExecutor)
   497  	ret1, _ := ret[1].(error)
   498  	return ret0, ret1
   499  }
   500  
   501  // BeginTx indicates an expected call of BeginTx.
   502  func (mr *MockTxExecutorMockRecorder) BeginTx(arg0 interface{}) *gomock.Call {
   503  	mr.mock.ctrl.T.Helper()
   504  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTx", reflect.TypeOf((*MockTxExecutor)(nil).BeginTx), arg0)
   505  }
   506  
   507  // Commit mocks base method.
   508  func (m *MockTxExecutor) Commit() error {
   509  	m.ctrl.T.Helper()
   510  	ret := m.ctrl.Call(m, "Commit")
   511  	ret0, _ := ret[0].(error)
   512  	return ret0
   513  }
   514  
   515  // Commit indicates an expected call of Commit.
   516  func (mr *MockTxExecutorMockRecorder) Commit() *gomock.Call {
   517  	mr.mock.ctrl.T.Helper()
   518  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockTxExecutor)(nil).Commit))
   519  }
   520  
   521  // IsTx mocks base method.
   522  func (m *MockTxExecutor) IsTx() bool {
   523  	m.ctrl.T.Helper()
   524  	ret := m.ctrl.Call(m, "IsTx")
   525  	ret0, _ := ret[0].(bool)
   526  	return ret0
   527  }
   528  
   529  // IsTx indicates an expected call of IsTx.
   530  func (mr *MockTxExecutorMockRecorder) IsTx() *gomock.Call {
   531  	mr.mock.ctrl.T.Helper()
   532  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsTx", reflect.TypeOf((*MockTxExecutor)(nil).IsTx))
   533  }
   534  
   535  // Rollback mocks base method.
   536  func (m *MockTxExecutor) Rollback() error {
   537  	m.ctrl.T.Helper()
   538  	ret := m.ctrl.Call(m, "Rollback")
   539  	ret0, _ := ret[0].(error)
   540  	return ret0
   541  }
   542  
   543  // Rollback indicates an expected call of Rollback.
   544  func (mr *MockTxExecutorMockRecorder) Rollback() *gomock.Call {
   545  	mr.mock.ctrl.T.Helper()
   546  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockTxExecutor)(nil).Rollback))
   547  }
   548  
   549  // MockMigrator is a mock of Migrator interface.
   550  type MockMigrator struct {
   551  	ctrl     *gomock.Controller
   552  	recorder *MockMigratorMockRecorder
   553  }
   554  
   555  // MockMigratorMockRecorder is the mock recorder for MockMigrator.
   556  type MockMigratorMockRecorder struct {
   557  	mock *MockMigrator
   558  }
   559  
   560  // NewMockMigrator creates a new mock instance.
   561  func NewMockMigrator(ctrl *gomock.Controller) *MockMigrator {
   562  	mock := &MockMigrator{ctrl: ctrl}
   563  	mock.recorder = &MockMigratorMockRecorder{mock}
   564  	return mock
   565  }
   566  
   567  // EXPECT returns an object that allows the caller to indicate expected use.
   568  func (m *MockMigrator) EXPECT() *MockMigratorMockRecorder {
   569  	return m.recorder
   570  }
   571  
   572  // Migrate mocks base method.
   573  func (m *MockMigrator) Migrate(ctx context.Context, db sqlx.DBExecutor) error {
   574  	m.ctrl.T.Helper()
   575  	ret := m.ctrl.Call(m, "Migrate", ctx, db)
   576  	ret0, _ := ret[0].(error)
   577  	return ret0
   578  }
   579  
   580  // Migrate indicates an expected call of Migrate.
   581  func (mr *MockMigratorMockRecorder) Migrate(ctx, db interface{}) *gomock.Call {
   582  	mr.mock.ctrl.T.Helper()
   583  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Migrate", reflect.TypeOf((*MockMigrator)(nil).Migrate), ctx, db)
   584  }