github.com/levb/mattermost-server@v5.3.1+incompatible/store/storetest/mocks/SqlStore.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // Regenerate this file using `make store-mocks`.
     4  
     5  package mocks
     6  
     7  import gorp "github.com/mattermost/gorp"
     8  import mock "github.com/stretchr/testify/mock"
     9  
    10  import store "github.com/mattermost/mattermost-server/store"
    11  
    12  // SqlStore is an autogenerated mock type for the SqlStore type
    13  type SqlStore struct {
    14  	mock.Mock
    15  }
    16  
    17  // AlterColumnTypeIfExists provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType
    18  func (_m *SqlStore) AlterColumnTypeIfExists(tableName string, columnName string, mySqlColType string, postgresColType string) bool {
    19  	ret := _m.Called(tableName, columnName, mySqlColType, postgresColType)
    20  
    21  	var r0 bool
    22  	if rf, ok := ret.Get(0).(func(string, string, string, string) bool); ok {
    23  		r0 = rf(tableName, columnName, mySqlColType, postgresColType)
    24  	} else {
    25  		r0 = ret.Get(0).(bool)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Audit provides a mock function with given fields:
    32  func (_m *SqlStore) Audit() store.AuditStore {
    33  	ret := _m.Called()
    34  
    35  	var r0 store.AuditStore
    36  	if rf, ok := ret.Get(0).(func() store.AuditStore); ok {
    37  		r0 = rf()
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(store.AuditStore)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // Channel provides a mock function with given fields:
    48  func (_m *SqlStore) Channel() store.ChannelStore {
    49  	ret := _m.Called()
    50  
    51  	var r0 store.ChannelStore
    52  	if rf, ok := ret.Get(0).(func() store.ChannelStore); ok {
    53  		r0 = rf()
    54  	} else {
    55  		if ret.Get(0) != nil {
    56  			r0 = ret.Get(0).(store.ChannelStore)
    57  		}
    58  	}
    59  
    60  	return r0
    61  }
    62  
    63  // Close provides a mock function with given fields:
    64  func (_m *SqlStore) Close() {
    65  	_m.Called()
    66  }
    67  
    68  // ClusterDiscovery provides a mock function with given fields:
    69  func (_m *SqlStore) ClusterDiscovery() store.ClusterDiscoveryStore {
    70  	ret := _m.Called()
    71  
    72  	var r0 store.ClusterDiscoveryStore
    73  	if rf, ok := ret.Get(0).(func() store.ClusterDiscoveryStore); ok {
    74  		r0 = rf()
    75  	} else {
    76  		if ret.Get(0) != nil {
    77  			r0 = ret.Get(0).(store.ClusterDiscoveryStore)
    78  		}
    79  	}
    80  
    81  	return r0
    82  }
    83  
    84  // Command provides a mock function with given fields:
    85  func (_m *SqlStore) Command() store.CommandStore {
    86  	ret := _m.Called()
    87  
    88  	var r0 store.CommandStore
    89  	if rf, ok := ret.Get(0).(func() store.CommandStore); ok {
    90  		r0 = rf()
    91  	} else {
    92  		if ret.Get(0) != nil {
    93  			r0 = ret.Get(0).(store.CommandStore)
    94  		}
    95  	}
    96  
    97  	return r0
    98  }
    99  
   100  // CommandWebhook provides a mock function with given fields:
   101  func (_m *SqlStore) CommandWebhook() store.CommandWebhookStore {
   102  	ret := _m.Called()
   103  
   104  	var r0 store.CommandWebhookStore
   105  	if rf, ok := ret.Get(0).(func() store.CommandWebhookStore); ok {
   106  		r0 = rf()
   107  	} else {
   108  		if ret.Get(0) != nil {
   109  			r0 = ret.Get(0).(store.CommandWebhookStore)
   110  		}
   111  	}
   112  
   113  	return r0
   114  }
   115  
   116  // Compliance provides a mock function with given fields:
   117  func (_m *SqlStore) Compliance() store.ComplianceStore {
   118  	ret := _m.Called()
   119  
   120  	var r0 store.ComplianceStore
   121  	if rf, ok := ret.Get(0).(func() store.ComplianceStore); ok {
   122  		r0 = rf()
   123  	} else {
   124  		if ret.Get(0) != nil {
   125  			r0 = ret.Get(0).(store.ComplianceStore)
   126  		}
   127  	}
   128  
   129  	return r0
   130  }
   131  
   132  // CreateColumnIfNotExists provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType, defaultValue
   133  func (_m *SqlStore) CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, postgresColType string, defaultValue string) bool {
   134  	ret := _m.Called(tableName, columnName, mySqlColType, postgresColType, defaultValue)
   135  
   136  	var r0 bool
   137  	if rf, ok := ret.Get(0).(func(string, string, string, string, string) bool); ok {
   138  		r0 = rf(tableName, columnName, mySqlColType, postgresColType, defaultValue)
   139  	} else {
   140  		r0 = ret.Get(0).(bool)
   141  	}
   142  
   143  	return r0
   144  }
   145  
   146  // CreateColumnIfNotExistsNoDefault provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType
   147  func (_m *SqlStore) CreateColumnIfNotExistsNoDefault(tableName string, columnName string, mySqlColType string, postgresColType string) bool {
   148  	ret := _m.Called(tableName, columnName, mySqlColType, postgresColType)
   149  
   150  	var r0 bool
   151  	if rf, ok := ret.Get(0).(func(string, string, string, string) bool); ok {
   152  		r0 = rf(tableName, columnName, mySqlColType, postgresColType)
   153  	} else {
   154  		r0 = ret.Get(0).(bool)
   155  	}
   156  
   157  	return r0
   158  }
   159  
   160  // CreateCompositeIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnNames
   161  func (_m *SqlStore) CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool {
   162  	ret := _m.Called(indexName, tableName, columnNames)
   163  
   164  	var r0 bool
   165  	if rf, ok := ret.Get(0).(func(string, string, []string) bool); ok {
   166  		r0 = rf(indexName, tableName, columnNames)
   167  	} else {
   168  		r0 = ret.Get(0).(bool)
   169  	}
   170  
   171  	return r0
   172  }
   173  
   174  // CreateFullTextIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   175  func (_m *SqlStore) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   176  	ret := _m.Called(indexName, tableName, columnName)
   177  
   178  	var r0 bool
   179  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   180  		r0 = rf(indexName, tableName, columnName)
   181  	} else {
   182  		r0 = ret.Get(0).(bool)
   183  	}
   184  
   185  	return r0
   186  }
   187  
   188  // CreateIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   189  func (_m *SqlStore) CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   190  	ret := _m.Called(indexName, tableName, columnName)
   191  
   192  	var r0 bool
   193  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   194  		r0 = rf(indexName, tableName, columnName)
   195  	} else {
   196  		r0 = ret.Get(0).(bool)
   197  	}
   198  
   199  	return r0
   200  }
   201  
   202  // CreateUniqueIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   203  func (_m *SqlStore) CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   204  	ret := _m.Called(indexName, tableName, columnName)
   205  
   206  	var r0 bool
   207  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   208  		r0 = rf(indexName, tableName, columnName)
   209  	} else {
   210  		r0 = ret.Get(0).(bool)
   211  	}
   212  
   213  	return r0
   214  }
   215  
   216  // DoesColumnExist provides a mock function with given fields: tableName, columName
   217  func (_m *SqlStore) DoesColumnExist(tableName string, columName string) bool {
   218  	ret := _m.Called(tableName, columName)
   219  
   220  	var r0 bool
   221  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   222  		r0 = rf(tableName, columName)
   223  	} else {
   224  		r0 = ret.Get(0).(bool)
   225  	}
   226  
   227  	return r0
   228  }
   229  
   230  // DoesTableExist provides a mock function with given fields: tablename
   231  func (_m *SqlStore) DoesTableExist(tablename string) bool {
   232  	ret := _m.Called(tablename)
   233  
   234  	var r0 bool
   235  	if rf, ok := ret.Get(0).(func(string) bool); ok {
   236  		r0 = rf(tablename)
   237  	} else {
   238  		r0 = ret.Get(0).(bool)
   239  	}
   240  
   241  	return r0
   242  }
   243  
   244  // DriverName provides a mock function with given fields:
   245  func (_m *SqlStore) DriverName() string {
   246  	ret := _m.Called()
   247  
   248  	var r0 string
   249  	if rf, ok := ret.Get(0).(func() string); ok {
   250  		r0 = rf()
   251  	} else {
   252  		r0 = ret.Get(0).(string)
   253  	}
   254  
   255  	return r0
   256  }
   257  
   258  // Emoji provides a mock function with given fields:
   259  func (_m *SqlStore) Emoji() store.EmojiStore {
   260  	ret := _m.Called()
   261  
   262  	var r0 store.EmojiStore
   263  	if rf, ok := ret.Get(0).(func() store.EmojiStore); ok {
   264  		r0 = rf()
   265  	} else {
   266  		if ret.Get(0) != nil {
   267  			r0 = ret.Get(0).(store.EmojiStore)
   268  		}
   269  	}
   270  
   271  	return r0
   272  }
   273  
   274  // FileInfo provides a mock function with given fields:
   275  func (_m *SqlStore) FileInfo() store.FileInfoStore {
   276  	ret := _m.Called()
   277  
   278  	var r0 store.FileInfoStore
   279  	if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok {
   280  		r0 = rf()
   281  	} else {
   282  		if ret.Get(0) != nil {
   283  			r0 = ret.Get(0).(store.FileInfoStore)
   284  		}
   285  	}
   286  
   287  	return r0
   288  }
   289  
   290  // GetAllConns provides a mock function with given fields:
   291  func (_m *SqlStore) GetAllConns() []*gorp.DbMap {
   292  	ret := _m.Called()
   293  
   294  	var r0 []*gorp.DbMap
   295  	if rf, ok := ret.Get(0).(func() []*gorp.DbMap); ok {
   296  		r0 = rf()
   297  	} else {
   298  		if ret.Get(0) != nil {
   299  			r0 = ret.Get(0).([]*gorp.DbMap)
   300  		}
   301  	}
   302  
   303  	return r0
   304  }
   305  
   306  // GetCurrentSchemaVersion provides a mock function with given fields:
   307  func (_m *SqlStore) GetCurrentSchemaVersion() string {
   308  	ret := _m.Called()
   309  
   310  	var r0 string
   311  	if rf, ok := ret.Get(0).(func() string); ok {
   312  		r0 = rf()
   313  	} else {
   314  		r0 = ret.Get(0).(string)
   315  	}
   316  
   317  	return r0
   318  }
   319  
   320  // GetMaster provides a mock function with given fields:
   321  func (_m *SqlStore) GetMaster() *gorp.DbMap {
   322  	ret := _m.Called()
   323  
   324  	var r0 *gorp.DbMap
   325  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   326  		r0 = rf()
   327  	} else {
   328  		if ret.Get(0) != nil {
   329  			r0 = ret.Get(0).(*gorp.DbMap)
   330  		}
   331  	}
   332  
   333  	return r0
   334  }
   335  
   336  // GetMaxLengthOfColumnIfExists provides a mock function with given fields: tableName, columnName
   337  func (_m *SqlStore) GetMaxLengthOfColumnIfExists(tableName string, columnName string) string {
   338  	ret := _m.Called(tableName, columnName)
   339  
   340  	var r0 string
   341  	if rf, ok := ret.Get(0).(func(string, string) string); ok {
   342  		r0 = rf(tableName, columnName)
   343  	} else {
   344  		r0 = ret.Get(0).(string)
   345  	}
   346  
   347  	return r0
   348  }
   349  
   350  // GetReplica provides a mock function with given fields:
   351  func (_m *SqlStore) GetReplica() *gorp.DbMap {
   352  	ret := _m.Called()
   353  
   354  	var r0 *gorp.DbMap
   355  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   356  		r0 = rf()
   357  	} else {
   358  		if ret.Get(0) != nil {
   359  			r0 = ret.Get(0).(*gorp.DbMap)
   360  		}
   361  	}
   362  
   363  	return r0
   364  }
   365  
   366  // GetSearchReplica provides a mock function with given fields:
   367  func (_m *SqlStore) GetSearchReplica() *gorp.DbMap {
   368  	ret := _m.Called()
   369  
   370  	var r0 *gorp.DbMap
   371  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   372  		r0 = rf()
   373  	} else {
   374  		if ret.Get(0) != nil {
   375  			r0 = ret.Get(0).(*gorp.DbMap)
   376  		}
   377  	}
   378  
   379  	return r0
   380  }
   381  
   382  // Job provides a mock function with given fields:
   383  func (_m *SqlStore) Job() store.JobStore {
   384  	ret := _m.Called()
   385  
   386  	var r0 store.JobStore
   387  	if rf, ok := ret.Get(0).(func() store.JobStore); ok {
   388  		r0 = rf()
   389  	} else {
   390  		if ret.Get(0) != nil {
   391  			r0 = ret.Get(0).(store.JobStore)
   392  		}
   393  	}
   394  
   395  	return r0
   396  }
   397  
   398  // License provides a mock function with given fields:
   399  func (_m *SqlStore) License() store.LicenseStore {
   400  	ret := _m.Called()
   401  
   402  	var r0 store.LicenseStore
   403  	if rf, ok := ret.Get(0).(func() store.LicenseStore); ok {
   404  		r0 = rf()
   405  	} else {
   406  		if ret.Get(0) != nil {
   407  			r0 = ret.Get(0).(store.LicenseStore)
   408  		}
   409  	}
   410  
   411  	return r0
   412  }
   413  
   414  // LockToMaster provides a mock function with given fields:
   415  func (_m *SqlStore) LockToMaster() {
   416  	_m.Called()
   417  }
   418  
   419  // MarkSystemRanUnitTests provides a mock function with given fields:
   420  func (_m *SqlStore) MarkSystemRanUnitTests() {
   421  	_m.Called()
   422  }
   423  
   424  // OAuth provides a mock function with given fields:
   425  func (_m *SqlStore) OAuth() store.OAuthStore {
   426  	ret := _m.Called()
   427  
   428  	var r0 store.OAuthStore
   429  	if rf, ok := ret.Get(0).(func() store.OAuthStore); ok {
   430  		r0 = rf()
   431  	} else {
   432  		if ret.Get(0) != nil {
   433  			r0 = ret.Get(0).(store.OAuthStore)
   434  		}
   435  	}
   436  
   437  	return r0
   438  }
   439  
   440  // Plugin provides a mock function with given fields:
   441  func (_m *SqlStore) Plugin() store.PluginStore {
   442  	ret := _m.Called()
   443  
   444  	var r0 store.PluginStore
   445  	if rf, ok := ret.Get(0).(func() store.PluginStore); ok {
   446  		r0 = rf()
   447  	} else {
   448  		if ret.Get(0) != nil {
   449  			r0 = ret.Get(0).(store.PluginStore)
   450  		}
   451  	}
   452  
   453  	return r0
   454  }
   455  
   456  // Post provides a mock function with given fields:
   457  func (_m *SqlStore) Post() store.PostStore {
   458  	ret := _m.Called()
   459  
   460  	var r0 store.PostStore
   461  	if rf, ok := ret.Get(0).(func() store.PostStore); ok {
   462  		r0 = rf()
   463  	} else {
   464  		if ret.Get(0) != nil {
   465  			r0 = ret.Get(0).(store.PostStore)
   466  		}
   467  	}
   468  
   469  	return r0
   470  }
   471  
   472  // Preference provides a mock function with given fields:
   473  func (_m *SqlStore) Preference() store.PreferenceStore {
   474  	ret := _m.Called()
   475  
   476  	var r0 store.PreferenceStore
   477  	if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok {
   478  		r0 = rf()
   479  	} else {
   480  		if ret.Get(0) != nil {
   481  			r0 = ret.Get(0).(store.PreferenceStore)
   482  		}
   483  	}
   484  
   485  	return r0
   486  }
   487  
   488  // Reaction provides a mock function with given fields:
   489  func (_m *SqlStore) Reaction() store.ReactionStore {
   490  	ret := _m.Called()
   491  
   492  	var r0 store.ReactionStore
   493  	if rf, ok := ret.Get(0).(func() store.ReactionStore); ok {
   494  		r0 = rf()
   495  	} else {
   496  		if ret.Get(0) != nil {
   497  			r0 = ret.Get(0).(store.ReactionStore)
   498  		}
   499  	}
   500  
   501  	return r0
   502  }
   503  
   504  // RemoveColumnIfExists provides a mock function with given fields: tableName, columnName
   505  func (_m *SqlStore) RemoveColumnIfExists(tableName string, columnName string) bool {
   506  	ret := _m.Called(tableName, columnName)
   507  
   508  	var r0 bool
   509  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   510  		r0 = rf(tableName, columnName)
   511  	} else {
   512  		r0 = ret.Get(0).(bool)
   513  	}
   514  
   515  	return r0
   516  }
   517  
   518  // RemoveIndexIfExists provides a mock function with given fields: indexName, tableName
   519  func (_m *SqlStore) RemoveIndexIfExists(indexName string, tableName string) bool {
   520  	ret := _m.Called(indexName, tableName)
   521  
   522  	var r0 bool
   523  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   524  		r0 = rf(indexName, tableName)
   525  	} else {
   526  		r0 = ret.Get(0).(bool)
   527  	}
   528  
   529  	return r0
   530  }
   531  
   532  // RemoveTableIfExists provides a mock function with given fields: tableName
   533  func (_m *SqlStore) RemoveTableIfExists(tableName string) bool {
   534  	ret := _m.Called(tableName)
   535  
   536  	var r0 bool
   537  	if rf, ok := ret.Get(0).(func(string) bool); ok {
   538  		r0 = rf(tableName)
   539  	} else {
   540  		r0 = ret.Get(0).(bool)
   541  	}
   542  
   543  	return r0
   544  }
   545  
   546  // RenameColumnIfExists provides a mock function with given fields: tableName, oldColumnName, newColumnName, colType
   547  func (_m *SqlStore) RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool {
   548  	ret := _m.Called(tableName, oldColumnName, newColumnName, colType)
   549  
   550  	var r0 bool
   551  	if rf, ok := ret.Get(0).(func(string, string, string, string) bool); ok {
   552  		r0 = rf(tableName, oldColumnName, newColumnName, colType)
   553  	} else {
   554  		r0 = ret.Get(0).(bool)
   555  	}
   556  
   557  	return r0
   558  }
   559  
   560  // Role provides a mock function with given fields:
   561  func (_m *SqlStore) Role() store.RoleStore {
   562  	ret := _m.Called()
   563  
   564  	var r0 store.RoleStore
   565  	if rf, ok := ret.Get(0).(func() store.RoleStore); ok {
   566  		r0 = rf()
   567  	} else {
   568  		if ret.Get(0) != nil {
   569  			r0 = ret.Get(0).(store.RoleStore)
   570  		}
   571  	}
   572  
   573  	return r0
   574  }
   575  
   576  // Scheme provides a mock function with given fields:
   577  func (_m *SqlStore) Scheme() store.SchemeStore {
   578  	ret := _m.Called()
   579  
   580  	var r0 store.SchemeStore
   581  	if rf, ok := ret.Get(0).(func() store.SchemeStore); ok {
   582  		r0 = rf()
   583  	} else {
   584  		if ret.Get(0) != nil {
   585  			r0 = ret.Get(0).(store.SchemeStore)
   586  		}
   587  	}
   588  
   589  	return r0
   590  }
   591  
   592  // Session provides a mock function with given fields:
   593  func (_m *SqlStore) Session() store.SessionStore {
   594  	ret := _m.Called()
   595  
   596  	var r0 store.SessionStore
   597  	if rf, ok := ret.Get(0).(func() store.SessionStore); ok {
   598  		r0 = rf()
   599  	} else {
   600  		if ret.Get(0) != nil {
   601  			r0 = ret.Get(0).(store.SessionStore)
   602  		}
   603  	}
   604  
   605  	return r0
   606  }
   607  
   608  // Status provides a mock function with given fields:
   609  func (_m *SqlStore) Status() store.StatusStore {
   610  	ret := _m.Called()
   611  
   612  	var r0 store.StatusStore
   613  	if rf, ok := ret.Get(0).(func() store.StatusStore); ok {
   614  		r0 = rf()
   615  	} else {
   616  		if ret.Get(0) != nil {
   617  			r0 = ret.Get(0).(store.StatusStore)
   618  		}
   619  	}
   620  
   621  	return r0
   622  }
   623  
   624  // System provides a mock function with given fields:
   625  func (_m *SqlStore) System() store.SystemStore {
   626  	ret := _m.Called()
   627  
   628  	var r0 store.SystemStore
   629  	if rf, ok := ret.Get(0).(func() store.SystemStore); ok {
   630  		r0 = rf()
   631  	} else {
   632  		if ret.Get(0) != nil {
   633  			r0 = ret.Get(0).(store.SystemStore)
   634  		}
   635  	}
   636  
   637  	return r0
   638  }
   639  
   640  // Team provides a mock function with given fields:
   641  func (_m *SqlStore) Team() store.TeamStore {
   642  	ret := _m.Called()
   643  
   644  	var r0 store.TeamStore
   645  	if rf, ok := ret.Get(0).(func() store.TeamStore); ok {
   646  		r0 = rf()
   647  	} else {
   648  		if ret.Get(0) != nil {
   649  			r0 = ret.Get(0).(store.TeamStore)
   650  		}
   651  	}
   652  
   653  	return r0
   654  }
   655  
   656  // Token provides a mock function with given fields:
   657  func (_m *SqlStore) Token() store.TokenStore {
   658  	ret := _m.Called()
   659  
   660  	var r0 store.TokenStore
   661  	if rf, ok := ret.Get(0).(func() store.TokenStore); ok {
   662  		r0 = rf()
   663  	} else {
   664  		if ret.Get(0) != nil {
   665  			r0 = ret.Get(0).(store.TokenStore)
   666  		}
   667  	}
   668  
   669  	return r0
   670  }
   671  
   672  // TotalMasterDbConnections provides a mock function with given fields:
   673  func (_m *SqlStore) TotalMasterDbConnections() int {
   674  	ret := _m.Called()
   675  
   676  	var r0 int
   677  	if rf, ok := ret.Get(0).(func() int); ok {
   678  		r0 = rf()
   679  	} else {
   680  		r0 = ret.Get(0).(int)
   681  	}
   682  
   683  	return r0
   684  }
   685  
   686  // TotalReadDbConnections provides a mock function with given fields:
   687  func (_m *SqlStore) TotalReadDbConnections() int {
   688  	ret := _m.Called()
   689  
   690  	var r0 int
   691  	if rf, ok := ret.Get(0).(func() int); ok {
   692  		r0 = rf()
   693  	} else {
   694  		r0 = ret.Get(0).(int)
   695  	}
   696  
   697  	return r0
   698  }
   699  
   700  // TotalSearchDbConnections provides a mock function with given fields:
   701  func (_m *SqlStore) TotalSearchDbConnections() int {
   702  	ret := _m.Called()
   703  
   704  	var r0 int
   705  	if rf, ok := ret.Get(0).(func() int); ok {
   706  		r0 = rf()
   707  	} else {
   708  		r0 = ret.Get(0).(int)
   709  	}
   710  
   711  	return r0
   712  }
   713  
   714  // UnlockFromMaster provides a mock function with given fields:
   715  func (_m *SqlStore) UnlockFromMaster() {
   716  	_m.Called()
   717  }
   718  
   719  // User provides a mock function with given fields:
   720  func (_m *SqlStore) User() store.UserStore {
   721  	ret := _m.Called()
   722  
   723  	var r0 store.UserStore
   724  	if rf, ok := ret.Get(0).(func() store.UserStore); ok {
   725  		r0 = rf()
   726  	} else {
   727  		if ret.Get(0) != nil {
   728  			r0 = ret.Get(0).(store.UserStore)
   729  		}
   730  	}
   731  
   732  	return r0
   733  }
   734  
   735  // UserAccessToken provides a mock function with given fields:
   736  func (_m *SqlStore) UserAccessToken() store.UserAccessTokenStore {
   737  	ret := _m.Called()
   738  
   739  	var r0 store.UserAccessTokenStore
   740  	if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok {
   741  		r0 = rf()
   742  	} else {
   743  		if ret.Get(0) != nil {
   744  			r0 = ret.Get(0).(store.UserAccessTokenStore)
   745  		}
   746  	}
   747  
   748  	return r0
   749  }
   750  
   751  // Webhook provides a mock function with given fields:
   752  func (_m *SqlStore) Webhook() store.WebhookStore {
   753  	ret := _m.Called()
   754  
   755  	var r0 store.WebhookStore
   756  	if rf, ok := ret.Get(0).(func() store.WebhookStore); ok {
   757  		r0 = rf()
   758  	} else {
   759  		if ret.Get(0) != nil {
   760  			r0 = ret.Get(0).(store.WebhookStore)
   761  		}
   762  	}
   763  
   764  	return r0
   765  }