MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / GetChannelQueryCount

Method GetChannelQueryCount

db/util_testing.go:443–449  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

441}
442
443func (db *DatabaseContext) GetChannelQueryCount() int64 {
444 if db.UseViews() {
445 return db.DbStats.Query(fmt.Sprintf(base.StatViewFormat, DesignDocSyncGateway(), ViewChannels)).QueryCount.Value()
446 }
447
448 return db.DbStats.Query(QueryTypeChannels).QueryCount.Value()
449}
450
451// GetLocalActiveReplicatorForTest is a test util for retrieving an Active Replicator for deeper introspection/assertions.
452func (m *sgReplicateManager) GetLocalActiveReplicatorForTest(t testing.TB, replicationID string) (ar *ActiveReplicator, ok bool) {

Callers 1

Calls 4

UseViewsMethod · 0.95
DesignDocSyncGatewayFunction · 0.85
QueryMethod · 0.65
ValueMethod · 0.45

Tested by 1