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