github.com/mattermosttest/mattermost-server/v5@v5.0.0-20200917143240-9dfa12e121f9/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 (
     8  	gorp "github.com/mattermost/gorp"
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	squirrel "github.com/Masterminds/squirrel"
    12  
    13  	store "github.com/mattermost/mattermost-server/v5/store"
    14  )
    15  
    16  // SqlStore is an autogenerated mock type for the SqlStore type
    17  type SqlStore struct {
    18  	mock.Mock
    19  }
    20  
    21  // AlterColumnDefaultIfExists provides a mock function with given fields: tableName, columnName, mySqlColDefault, postgresColDefault
    22  func (_m *SqlStore) AlterColumnDefaultIfExists(tableName string, columnName string, mySqlColDefault *string, postgresColDefault *string) bool {
    23  	ret := _m.Called(tableName, columnName, mySqlColDefault, postgresColDefault)
    24  
    25  	var r0 bool
    26  	if rf, ok := ret.Get(0).(func(string, string, *string, *string) bool); ok {
    27  		r0 = rf(tableName, columnName, mySqlColDefault, postgresColDefault)
    28  	} else {
    29  		r0 = ret.Get(0).(bool)
    30  	}
    31  
    32  	return r0
    33  }
    34  
    35  // AlterColumnTypeIfExists provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType
    36  func (_m *SqlStore) AlterColumnTypeIfExists(tableName string, columnName string, mySqlColType string, postgresColType string) bool {
    37  	ret := _m.Called(tableName, columnName, mySqlColType, postgresColType)
    38  
    39  	var r0 bool
    40  	if rf, ok := ret.Get(0).(func(string, string, string, string) bool); ok {
    41  		r0 = rf(tableName, columnName, mySqlColType, postgresColType)
    42  	} else {
    43  		r0 = ret.Get(0).(bool)
    44  	}
    45  
    46  	return r0
    47  }
    48  
    49  // AlterPrimaryKey provides a mock function with given fields: tableName, columnNames
    50  func (_m *SqlStore) AlterPrimaryKey(tableName string, columnNames []string) bool {
    51  	ret := _m.Called(tableName, columnNames)
    52  
    53  	var r0 bool
    54  	if rf, ok := ret.Get(0).(func(string, []string) bool); ok {
    55  		r0 = rf(tableName, columnNames)
    56  	} else {
    57  		r0 = ret.Get(0).(bool)
    58  	}
    59  
    60  	return r0
    61  }
    62  
    63  // Audit provides a mock function with given fields:
    64  func (_m *SqlStore) Audit() store.AuditStore {
    65  	ret := _m.Called()
    66  
    67  	var r0 store.AuditStore
    68  	if rf, ok := ret.Get(0).(func() store.AuditStore); ok {
    69  		r0 = rf()
    70  	} else {
    71  		if ret.Get(0) != nil {
    72  			r0 = ret.Get(0).(store.AuditStore)
    73  		}
    74  	}
    75  
    76  	return r0
    77  }
    78  
    79  // Bot provides a mock function with given fields:
    80  func (_m *SqlStore) Bot() store.BotStore {
    81  	ret := _m.Called()
    82  
    83  	var r0 store.BotStore
    84  	if rf, ok := ret.Get(0).(func() store.BotStore); ok {
    85  		r0 = rf()
    86  	} else {
    87  		if ret.Get(0) != nil {
    88  			r0 = ret.Get(0).(store.BotStore)
    89  		}
    90  	}
    91  
    92  	return r0
    93  }
    94  
    95  // Channel provides a mock function with given fields:
    96  func (_m *SqlStore) Channel() store.ChannelStore {
    97  	ret := _m.Called()
    98  
    99  	var r0 store.ChannelStore
   100  	if rf, ok := ret.Get(0).(func() store.ChannelStore); ok {
   101  		r0 = rf()
   102  	} else {
   103  		if ret.Get(0) != nil {
   104  			r0 = ret.Get(0).(store.ChannelStore)
   105  		}
   106  	}
   107  
   108  	return r0
   109  }
   110  
   111  // Close provides a mock function with given fields:
   112  func (_m *SqlStore) Close() {
   113  	_m.Called()
   114  }
   115  
   116  // ClusterDiscovery provides a mock function with given fields:
   117  func (_m *SqlStore) ClusterDiscovery() store.ClusterDiscoveryStore {
   118  	ret := _m.Called()
   119  
   120  	var r0 store.ClusterDiscoveryStore
   121  	if rf, ok := ret.Get(0).(func() store.ClusterDiscoveryStore); ok {
   122  		r0 = rf()
   123  	} else {
   124  		if ret.Get(0) != nil {
   125  			r0 = ret.Get(0).(store.ClusterDiscoveryStore)
   126  		}
   127  	}
   128  
   129  	return r0
   130  }
   131  
   132  // Command provides a mock function with given fields:
   133  func (_m *SqlStore) Command() store.CommandStore {
   134  	ret := _m.Called()
   135  
   136  	var r0 store.CommandStore
   137  	if rf, ok := ret.Get(0).(func() store.CommandStore); ok {
   138  		r0 = rf()
   139  	} else {
   140  		if ret.Get(0) != nil {
   141  			r0 = ret.Get(0).(store.CommandStore)
   142  		}
   143  	}
   144  
   145  	return r0
   146  }
   147  
   148  // CommandWebhook provides a mock function with given fields:
   149  func (_m *SqlStore) CommandWebhook() store.CommandWebhookStore {
   150  	ret := _m.Called()
   151  
   152  	var r0 store.CommandWebhookStore
   153  	if rf, ok := ret.Get(0).(func() store.CommandWebhookStore); ok {
   154  		r0 = rf()
   155  	} else {
   156  		if ret.Get(0) != nil {
   157  			r0 = ret.Get(0).(store.CommandWebhookStore)
   158  		}
   159  	}
   160  
   161  	return r0
   162  }
   163  
   164  // Compliance provides a mock function with given fields:
   165  func (_m *SqlStore) Compliance() store.ComplianceStore {
   166  	ret := _m.Called()
   167  
   168  	var r0 store.ComplianceStore
   169  	if rf, ok := ret.Get(0).(func() store.ComplianceStore); ok {
   170  		r0 = rf()
   171  	} else {
   172  		if ret.Get(0) != nil {
   173  			r0 = ret.Get(0).(store.ComplianceStore)
   174  		}
   175  	}
   176  
   177  	return r0
   178  }
   179  
   180  // CreateColumnIfNotExists provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType, defaultValue
   181  func (_m *SqlStore) CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, postgresColType string, defaultValue string) bool {
   182  	ret := _m.Called(tableName, columnName, mySqlColType, postgresColType, defaultValue)
   183  
   184  	var r0 bool
   185  	if rf, ok := ret.Get(0).(func(string, string, string, string, string) bool); ok {
   186  		r0 = rf(tableName, columnName, mySqlColType, postgresColType, defaultValue)
   187  	} else {
   188  		r0 = ret.Get(0).(bool)
   189  	}
   190  
   191  	return r0
   192  }
   193  
   194  // CreateColumnIfNotExistsNoDefault provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType
   195  func (_m *SqlStore) CreateColumnIfNotExistsNoDefault(tableName string, columnName string, mySqlColType string, postgresColType string) bool {
   196  	ret := _m.Called(tableName, columnName, mySqlColType, postgresColType)
   197  
   198  	var r0 bool
   199  	if rf, ok := ret.Get(0).(func(string, string, string, string) bool); ok {
   200  		r0 = rf(tableName, columnName, mySqlColType, postgresColType)
   201  	} else {
   202  		r0 = ret.Get(0).(bool)
   203  	}
   204  
   205  	return r0
   206  }
   207  
   208  // CreateCompositeIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnNames
   209  func (_m *SqlStore) CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool {
   210  	ret := _m.Called(indexName, tableName, columnNames)
   211  
   212  	var r0 bool
   213  	if rf, ok := ret.Get(0).(func(string, string, []string) bool); ok {
   214  		r0 = rf(indexName, tableName, columnNames)
   215  	} else {
   216  		r0 = ret.Get(0).(bool)
   217  	}
   218  
   219  	return r0
   220  }
   221  
   222  // CreateFullTextIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   223  func (_m *SqlStore) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   224  	ret := _m.Called(indexName, tableName, columnName)
   225  
   226  	var r0 bool
   227  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   228  		r0 = rf(indexName, tableName, columnName)
   229  	} else {
   230  		r0 = ret.Get(0).(bool)
   231  	}
   232  
   233  	return r0
   234  }
   235  
   236  // CreateIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   237  func (_m *SqlStore) CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   238  	ret := _m.Called(indexName, tableName, columnName)
   239  
   240  	var r0 bool
   241  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   242  		r0 = rf(indexName, tableName, columnName)
   243  	} else {
   244  		r0 = ret.Get(0).(bool)
   245  	}
   246  
   247  	return r0
   248  }
   249  
   250  // CreateUniqueCompositeIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnNames
   251  func (_m *SqlStore) CreateUniqueCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool {
   252  	ret := _m.Called(indexName, tableName, columnNames)
   253  
   254  	var r0 bool
   255  	if rf, ok := ret.Get(0).(func(string, string, []string) bool); ok {
   256  		r0 = rf(indexName, tableName, columnNames)
   257  	} else {
   258  		r0 = ret.Get(0).(bool)
   259  	}
   260  
   261  	return r0
   262  }
   263  
   264  // CreateUniqueIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   265  func (_m *SqlStore) CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   266  	ret := _m.Called(indexName, tableName, columnName)
   267  
   268  	var r0 bool
   269  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   270  		r0 = rf(indexName, tableName, columnName)
   271  	} else {
   272  		r0 = ret.Get(0).(bool)
   273  	}
   274  
   275  	return r0
   276  }
   277  
   278  // DoesColumnExist provides a mock function with given fields: tableName, columName
   279  func (_m *SqlStore) DoesColumnExist(tableName string, columName string) bool {
   280  	ret := _m.Called(tableName, columName)
   281  
   282  	var r0 bool
   283  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   284  		r0 = rf(tableName, columName)
   285  	} else {
   286  		r0 = ret.Get(0).(bool)
   287  	}
   288  
   289  	return r0
   290  }
   291  
   292  // DoesTableExist provides a mock function with given fields: tablename
   293  func (_m *SqlStore) DoesTableExist(tablename string) bool {
   294  	ret := _m.Called(tablename)
   295  
   296  	var r0 bool
   297  	if rf, ok := ret.Get(0).(func(string) bool); ok {
   298  		r0 = rf(tablename)
   299  	} else {
   300  		r0 = ret.Get(0).(bool)
   301  	}
   302  
   303  	return r0
   304  }
   305  
   306  // DoesTriggerExist provides a mock function with given fields: triggerName
   307  func (_m *SqlStore) DoesTriggerExist(triggerName string) bool {
   308  	ret := _m.Called(triggerName)
   309  
   310  	var r0 bool
   311  	if rf, ok := ret.Get(0).(func(string) bool); ok {
   312  		r0 = rf(triggerName)
   313  	} else {
   314  		r0 = ret.Get(0).(bool)
   315  	}
   316  
   317  	return r0
   318  }
   319  
   320  // DriverName provides a mock function with given fields:
   321  func (_m *SqlStore) DriverName() string {
   322  	ret := _m.Called()
   323  
   324  	var r0 string
   325  	if rf, ok := ret.Get(0).(func() string); ok {
   326  		r0 = rf()
   327  	} else {
   328  		r0 = ret.Get(0).(string)
   329  	}
   330  
   331  	return r0
   332  }
   333  
   334  // Emoji provides a mock function with given fields:
   335  func (_m *SqlStore) Emoji() store.EmojiStore {
   336  	ret := _m.Called()
   337  
   338  	var r0 store.EmojiStore
   339  	if rf, ok := ret.Get(0).(func() store.EmojiStore); ok {
   340  		r0 = rf()
   341  	} else {
   342  		if ret.Get(0) != nil {
   343  			r0 = ret.Get(0).(store.EmojiStore)
   344  		}
   345  	}
   346  
   347  	return r0
   348  }
   349  
   350  // FileInfo provides a mock function with given fields:
   351  func (_m *SqlStore) FileInfo() store.FileInfoStore {
   352  	ret := _m.Called()
   353  
   354  	var r0 store.FileInfoStore
   355  	if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok {
   356  		r0 = rf()
   357  	} else {
   358  		if ret.Get(0) != nil {
   359  			r0 = ret.Get(0).(store.FileInfoStore)
   360  		}
   361  	}
   362  
   363  	return r0
   364  }
   365  
   366  // GetAllConns provides a mock function with given fields:
   367  func (_m *SqlStore) GetAllConns() []*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  // GetCurrentSchemaVersion provides a mock function with given fields:
   383  func (_m *SqlStore) GetCurrentSchemaVersion() string {
   384  	ret := _m.Called()
   385  
   386  	var r0 string
   387  	if rf, ok := ret.Get(0).(func() string); ok {
   388  		r0 = rf()
   389  	} else {
   390  		r0 = ret.Get(0).(string)
   391  	}
   392  
   393  	return r0
   394  }
   395  
   396  // GetDbVersion provides a mock function with given fields:
   397  func (_m *SqlStore) GetDbVersion() (string, error) {
   398  	ret := _m.Called()
   399  
   400  	var r0 string
   401  	if rf, ok := ret.Get(0).(func() string); ok {
   402  		r0 = rf()
   403  	} else {
   404  		r0 = ret.Get(0).(string)
   405  	}
   406  
   407  	var r1 error
   408  	if rf, ok := ret.Get(1).(func() error); ok {
   409  		r1 = rf()
   410  	} else {
   411  		r1 = ret.Error(1)
   412  	}
   413  
   414  	return r0, r1
   415  }
   416  
   417  // GetMaster provides a mock function with given fields:
   418  func (_m *SqlStore) GetMaster() *gorp.DbMap {
   419  	ret := _m.Called()
   420  
   421  	var r0 *gorp.DbMap
   422  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   423  		r0 = rf()
   424  	} else {
   425  		if ret.Get(0) != nil {
   426  			r0 = ret.Get(0).(*gorp.DbMap)
   427  		}
   428  	}
   429  
   430  	return r0
   431  }
   432  
   433  // GetMaxLengthOfColumnIfExists provides a mock function with given fields: tableName, columnName
   434  func (_m *SqlStore) GetMaxLengthOfColumnIfExists(tableName string, columnName string) string {
   435  	ret := _m.Called(tableName, columnName)
   436  
   437  	var r0 string
   438  	if rf, ok := ret.Get(0).(func(string, string) string); ok {
   439  		r0 = rf(tableName, columnName)
   440  	} else {
   441  		r0 = ret.Get(0).(string)
   442  	}
   443  
   444  	return r0
   445  }
   446  
   447  // GetReplica provides a mock function with given fields:
   448  func (_m *SqlStore) GetReplica() *gorp.DbMap {
   449  	ret := _m.Called()
   450  
   451  	var r0 *gorp.DbMap
   452  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   453  		r0 = rf()
   454  	} else {
   455  		if ret.Get(0) != nil {
   456  			r0 = ret.Get(0).(*gorp.DbMap)
   457  		}
   458  	}
   459  
   460  	return r0
   461  }
   462  
   463  // GetSearchReplica provides a mock function with given fields:
   464  func (_m *SqlStore) GetSearchReplica() *gorp.DbMap {
   465  	ret := _m.Called()
   466  
   467  	var r0 *gorp.DbMap
   468  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   469  		r0 = rf()
   470  	} else {
   471  		if ret.Get(0) != nil {
   472  			r0 = ret.Get(0).(*gorp.DbMap)
   473  		}
   474  	}
   475  
   476  	return r0
   477  }
   478  
   479  // Job provides a mock function with given fields:
   480  func (_m *SqlStore) Job() store.JobStore {
   481  	ret := _m.Called()
   482  
   483  	var r0 store.JobStore
   484  	if rf, ok := ret.Get(0).(func() store.JobStore); ok {
   485  		r0 = rf()
   486  	} else {
   487  		if ret.Get(0) != nil {
   488  			r0 = ret.Get(0).(store.JobStore)
   489  		}
   490  	}
   491  
   492  	return r0
   493  }
   494  
   495  // License provides a mock function with given fields:
   496  func (_m *SqlStore) License() store.LicenseStore {
   497  	ret := _m.Called()
   498  
   499  	var r0 store.LicenseStore
   500  	if rf, ok := ret.Get(0).(func() store.LicenseStore); ok {
   501  		r0 = rf()
   502  	} else {
   503  		if ret.Get(0) != nil {
   504  			r0 = ret.Get(0).(store.LicenseStore)
   505  		}
   506  	}
   507  
   508  	return r0
   509  }
   510  
   511  // LinkMetadata provides a mock function with given fields:
   512  func (_m *SqlStore) LinkMetadata() store.LinkMetadataStore {
   513  	ret := _m.Called()
   514  
   515  	var r0 store.LinkMetadataStore
   516  	if rf, ok := ret.Get(0).(func() store.LinkMetadataStore); ok {
   517  		r0 = rf()
   518  	} else {
   519  		if ret.Get(0) != nil {
   520  			r0 = ret.Get(0).(store.LinkMetadataStore)
   521  		}
   522  	}
   523  
   524  	return r0
   525  }
   526  
   527  // LockToMaster provides a mock function with given fields:
   528  func (_m *SqlStore) LockToMaster() {
   529  	_m.Called()
   530  }
   531  
   532  // MarkSystemRanUnitTests provides a mock function with given fields:
   533  func (_m *SqlStore) MarkSystemRanUnitTests() {
   534  	_m.Called()
   535  }
   536  
   537  // OAuth provides a mock function with given fields:
   538  func (_m *SqlStore) OAuth() store.OAuthStore {
   539  	ret := _m.Called()
   540  
   541  	var r0 store.OAuthStore
   542  	if rf, ok := ret.Get(0).(func() store.OAuthStore); ok {
   543  		r0 = rf()
   544  	} else {
   545  		if ret.Get(0) != nil {
   546  			r0 = ret.Get(0).(store.OAuthStore)
   547  		}
   548  	}
   549  
   550  	return r0
   551  }
   552  
   553  // Plugin provides a mock function with given fields:
   554  func (_m *SqlStore) Plugin() store.PluginStore {
   555  	ret := _m.Called()
   556  
   557  	var r0 store.PluginStore
   558  	if rf, ok := ret.Get(0).(func() store.PluginStore); ok {
   559  		r0 = rf()
   560  	} else {
   561  		if ret.Get(0) != nil {
   562  			r0 = ret.Get(0).(store.PluginStore)
   563  		}
   564  	}
   565  
   566  	return r0
   567  }
   568  
   569  // Post provides a mock function with given fields:
   570  func (_m *SqlStore) Post() store.PostStore {
   571  	ret := _m.Called()
   572  
   573  	var r0 store.PostStore
   574  	if rf, ok := ret.Get(0).(func() store.PostStore); ok {
   575  		r0 = rf()
   576  	} else {
   577  		if ret.Get(0) != nil {
   578  			r0 = ret.Get(0).(store.PostStore)
   579  		}
   580  	}
   581  
   582  	return r0
   583  }
   584  
   585  // Preference provides a mock function with given fields:
   586  func (_m *SqlStore) Preference() store.PreferenceStore {
   587  	ret := _m.Called()
   588  
   589  	var r0 store.PreferenceStore
   590  	if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok {
   591  		r0 = rf()
   592  	} else {
   593  		if ret.Get(0) != nil {
   594  			r0 = ret.Get(0).(store.PreferenceStore)
   595  		}
   596  	}
   597  
   598  	return r0
   599  }
   600  
   601  // Reaction provides a mock function with given fields:
   602  func (_m *SqlStore) Reaction() store.ReactionStore {
   603  	ret := _m.Called()
   604  
   605  	var r0 store.ReactionStore
   606  	if rf, ok := ret.Get(0).(func() store.ReactionStore); ok {
   607  		r0 = rf()
   608  	} else {
   609  		if ret.Get(0) != nil {
   610  			r0 = ret.Get(0).(store.ReactionStore)
   611  		}
   612  	}
   613  
   614  	return r0
   615  }
   616  
   617  // RemoveColumnIfExists provides a mock function with given fields: tableName, columnName
   618  func (_m *SqlStore) RemoveColumnIfExists(tableName string, columnName string) bool {
   619  	ret := _m.Called(tableName, columnName)
   620  
   621  	var r0 bool
   622  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   623  		r0 = rf(tableName, columnName)
   624  	} else {
   625  		r0 = ret.Get(0).(bool)
   626  	}
   627  
   628  	return r0
   629  }
   630  
   631  // RemoveIndexIfExists provides a mock function with given fields: indexName, tableName
   632  func (_m *SqlStore) RemoveIndexIfExists(indexName string, tableName string) bool {
   633  	ret := _m.Called(indexName, tableName)
   634  
   635  	var r0 bool
   636  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   637  		r0 = rf(indexName, tableName)
   638  	} else {
   639  		r0 = ret.Get(0).(bool)
   640  	}
   641  
   642  	return r0
   643  }
   644  
   645  // RemoveTableIfExists provides a mock function with given fields: tableName
   646  func (_m *SqlStore) RemoveTableIfExists(tableName string) bool {
   647  	ret := _m.Called(tableName)
   648  
   649  	var r0 bool
   650  	if rf, ok := ret.Get(0).(func(string) bool); ok {
   651  		r0 = rf(tableName)
   652  	} else {
   653  		r0 = ret.Get(0).(bool)
   654  	}
   655  
   656  	return r0
   657  }
   658  
   659  // RenameColumnIfExists provides a mock function with given fields: tableName, oldColumnName, newColumnName, colType
   660  func (_m *SqlStore) RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool {
   661  	ret := _m.Called(tableName, oldColumnName, newColumnName, colType)
   662  
   663  	var r0 bool
   664  	if rf, ok := ret.Get(0).(func(string, string, string, string) bool); ok {
   665  		r0 = rf(tableName, oldColumnName, newColumnName, colType)
   666  	} else {
   667  		r0 = ret.Get(0).(bool)
   668  	}
   669  
   670  	return r0
   671  }
   672  
   673  // Role provides a mock function with given fields:
   674  func (_m *SqlStore) Role() store.RoleStore {
   675  	ret := _m.Called()
   676  
   677  	var r0 store.RoleStore
   678  	if rf, ok := ret.Get(0).(func() store.RoleStore); ok {
   679  		r0 = rf()
   680  	} else {
   681  		if ret.Get(0) != nil {
   682  			r0 = ret.Get(0).(store.RoleStore)
   683  		}
   684  	}
   685  
   686  	return r0
   687  }
   688  
   689  // Scheme provides a mock function with given fields:
   690  func (_m *SqlStore) Scheme() store.SchemeStore {
   691  	ret := _m.Called()
   692  
   693  	var r0 store.SchemeStore
   694  	if rf, ok := ret.Get(0).(func() store.SchemeStore); ok {
   695  		r0 = rf()
   696  	} else {
   697  		if ret.Get(0) != nil {
   698  			r0 = ret.Get(0).(store.SchemeStore)
   699  		}
   700  	}
   701  
   702  	return r0
   703  }
   704  
   705  // Session provides a mock function with given fields:
   706  func (_m *SqlStore) Session() store.SessionStore {
   707  	ret := _m.Called()
   708  
   709  	var r0 store.SessionStore
   710  	if rf, ok := ret.Get(0).(func() store.SessionStore); ok {
   711  		r0 = rf()
   712  	} else {
   713  		if ret.Get(0) != nil {
   714  			r0 = ret.Get(0).(store.SessionStore)
   715  		}
   716  	}
   717  
   718  	return r0
   719  }
   720  
   721  // Status provides a mock function with given fields:
   722  func (_m *SqlStore) Status() store.StatusStore {
   723  	ret := _m.Called()
   724  
   725  	var r0 store.StatusStore
   726  	if rf, ok := ret.Get(0).(func() store.StatusStore); ok {
   727  		r0 = rf()
   728  	} else {
   729  		if ret.Get(0) != nil {
   730  			r0 = ret.Get(0).(store.StatusStore)
   731  		}
   732  	}
   733  
   734  	return r0
   735  }
   736  
   737  // System provides a mock function with given fields:
   738  func (_m *SqlStore) System() store.SystemStore {
   739  	ret := _m.Called()
   740  
   741  	var r0 store.SystemStore
   742  	if rf, ok := ret.Get(0).(func() store.SystemStore); ok {
   743  		r0 = rf()
   744  	} else {
   745  		if ret.Get(0) != nil {
   746  			r0 = ret.Get(0).(store.SystemStore)
   747  		}
   748  	}
   749  
   750  	return r0
   751  }
   752  
   753  // Team provides a mock function with given fields:
   754  func (_m *SqlStore) Team() store.TeamStore {
   755  	ret := _m.Called()
   756  
   757  	var r0 store.TeamStore
   758  	if rf, ok := ret.Get(0).(func() store.TeamStore); ok {
   759  		r0 = rf()
   760  	} else {
   761  		if ret.Get(0) != nil {
   762  			r0 = ret.Get(0).(store.TeamStore)
   763  		}
   764  	}
   765  
   766  	return r0
   767  }
   768  
   769  // TermsOfService provides a mock function with given fields:
   770  func (_m *SqlStore) TermsOfService() store.TermsOfServiceStore {
   771  	ret := _m.Called()
   772  
   773  	var r0 store.TermsOfServiceStore
   774  	if rf, ok := ret.Get(0).(func() store.TermsOfServiceStore); ok {
   775  		r0 = rf()
   776  	} else {
   777  		if ret.Get(0) != nil {
   778  			r0 = ret.Get(0).(store.TermsOfServiceStore)
   779  		}
   780  	}
   781  
   782  	return r0
   783  }
   784  
   785  // Token provides a mock function with given fields:
   786  func (_m *SqlStore) Token() store.TokenStore {
   787  	ret := _m.Called()
   788  
   789  	var r0 store.TokenStore
   790  	if rf, ok := ret.Get(0).(func() store.TokenStore); ok {
   791  		r0 = rf()
   792  	} else {
   793  		if ret.Get(0) != nil {
   794  			r0 = ret.Get(0).(store.TokenStore)
   795  		}
   796  	}
   797  
   798  	return r0
   799  }
   800  
   801  // TotalMasterDbConnections provides a mock function with given fields:
   802  func (_m *SqlStore) TotalMasterDbConnections() int {
   803  	ret := _m.Called()
   804  
   805  	var r0 int
   806  	if rf, ok := ret.Get(0).(func() int); ok {
   807  		r0 = rf()
   808  	} else {
   809  		r0 = ret.Get(0).(int)
   810  	}
   811  
   812  	return r0
   813  }
   814  
   815  // TotalReadDbConnections provides a mock function with given fields:
   816  func (_m *SqlStore) TotalReadDbConnections() int {
   817  	ret := _m.Called()
   818  
   819  	var r0 int
   820  	if rf, ok := ret.Get(0).(func() int); ok {
   821  		r0 = rf()
   822  	} else {
   823  		r0 = ret.Get(0).(int)
   824  	}
   825  
   826  	return r0
   827  }
   828  
   829  // TotalSearchDbConnections provides a mock function with given fields:
   830  func (_m *SqlStore) TotalSearchDbConnections() int {
   831  	ret := _m.Called()
   832  
   833  	var r0 int
   834  	if rf, ok := ret.Get(0).(func() int); ok {
   835  		r0 = rf()
   836  	} else {
   837  		r0 = ret.Get(0).(int)
   838  	}
   839  
   840  	return r0
   841  }
   842  
   843  // UnlockFromMaster provides a mock function with given fields:
   844  func (_m *SqlStore) UnlockFromMaster() {
   845  	_m.Called()
   846  }
   847  
   848  // User provides a mock function with given fields:
   849  func (_m *SqlStore) User() store.UserStore {
   850  	ret := _m.Called()
   851  
   852  	var r0 store.UserStore
   853  	if rf, ok := ret.Get(0).(func() store.UserStore); ok {
   854  		r0 = rf()
   855  	} else {
   856  		if ret.Get(0) != nil {
   857  			r0 = ret.Get(0).(store.UserStore)
   858  		}
   859  	}
   860  
   861  	return r0
   862  }
   863  
   864  // UserAccessToken provides a mock function with given fields:
   865  func (_m *SqlStore) UserAccessToken() store.UserAccessTokenStore {
   866  	ret := _m.Called()
   867  
   868  	var r0 store.UserAccessTokenStore
   869  	if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok {
   870  		r0 = rf()
   871  	} else {
   872  		if ret.Get(0) != nil {
   873  			r0 = ret.Get(0).(store.UserAccessTokenStore)
   874  		}
   875  	}
   876  
   877  	return r0
   878  }
   879  
   880  // UserTermsOfService provides a mock function with given fields:
   881  func (_m *SqlStore) UserTermsOfService() store.UserTermsOfServiceStore {
   882  	ret := _m.Called()
   883  
   884  	var r0 store.UserTermsOfServiceStore
   885  	if rf, ok := ret.Get(0).(func() store.UserTermsOfServiceStore); ok {
   886  		r0 = rf()
   887  	} else {
   888  		if ret.Get(0) != nil {
   889  			r0 = ret.Get(0).(store.UserTermsOfServiceStore)
   890  		}
   891  	}
   892  
   893  	return r0
   894  }
   895  
   896  // Webhook provides a mock function with given fields:
   897  func (_m *SqlStore) Webhook() store.WebhookStore {
   898  	ret := _m.Called()
   899  
   900  	var r0 store.WebhookStore
   901  	if rf, ok := ret.Get(0).(func() store.WebhookStore); ok {
   902  		r0 = rf()
   903  	} else {
   904  		if ret.Get(0) != nil {
   905  			r0 = ret.Get(0).(store.WebhookStore)
   906  		}
   907  	}
   908  
   909  	return r0
   910  }
   911  
   912  // getQueryBuilder provides a mock function with given fields:
   913  func (_m *SqlStore) getQueryBuilder() squirrel.StatementBuilderType {
   914  	ret := _m.Called()
   915  
   916  	var r0 squirrel.StatementBuilderType
   917  	if rf, ok := ret.Get(0).(func() squirrel.StatementBuilderType); ok {
   918  		r0 = rf()
   919  	} else {
   920  		r0 = ret.Get(0).(squirrel.StatementBuilderType)
   921  	}
   922  
   923  	return r0
   924  }