mirror of
https://github.com/rancher/steve.git
synced 2025-09-23 12:29:09 +00:00
Drop tables instead of removing the database completely (#807)
* Add drop tables * Fix deadlock * Use f.Stop in tests * Rename dropAllStmtFmt to dropBaseStmtFmt * Fix comment * More dropAll->dropBase renaming
This commit is contained in:
@@ -44,6 +44,20 @@ func (m *MockByOptionsLister) EXPECT() *MockByOptionsListerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// DropAll mocks base method.
|
||||
func (m *MockByOptionsLister) DropAll(arg0 context.Context) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DropAll", arg0)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// DropAll indicates an expected call of DropAll.
|
||||
func (mr *MockByOptionsListerMockRecorder) DropAll(arg0 any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropAll", reflect.TypeOf((*MockByOptionsLister)(nil).DropAll), arg0)
|
||||
}
|
||||
|
||||
// GetLatestResourceVersion mocks base method.
|
||||
func (m *MockByOptionsLister) GetLatestResourceVersion() []string {
|
||||
m.ctrl.T.Helper()
|
||||
|
Reference in New Issue
Block a user