Skip to content

Commit

Permalink
GOCBC-1373: Add support for collection query index manager
Browse files Browse the repository at this point in the history
Motivation
----------
To better integrate support for collections and query index
management,  and to ensure that we send query_context, we should
add a collection level query index manager.

Changes
-------
Create a new baseQueryIndexManager.
Create a new CollectionQueryIndexManager based off the above.
Update QueryIndexmanager to also be based off the above.
Add QueryIndexes call to Collection.

Change-Id: If9855bc077ad62c3c3402de4c21072eb202f26f8
Reviewed-on: https://review.couchbase.org/c/gocb/+/184527
Reviewed-by: Brett Lawson <[email protected]>
Tested-by: Charles Dixon <[email protected]>
  • Loading branch information
chvck committed Feb 14, 2023
1 parent 89530ff commit 7472b67
Show file tree
Hide file tree
Showing 9 changed files with 1,143 additions and 527 deletions.
516 changes: 516 additions & 0 deletions base_queryindexes.go

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,12 @@ func (c *Cluster) AnalyticsIndexes() *AnalyticsIndexManager {
// QueryIndexes returns a QueryIndexManager for managing query indexes.
func (c *Cluster) QueryIndexes() *QueryIndexManager {
return &QueryIndexManager{
provider: c,
globalTimeout: c.timeoutsConfig.ManagementTimeout,
tracer: c.tracer,
meter: c.meter,
base: &baseQueryIndexManager{
provider: c,
globalTimeout: c.timeoutsConfig.ManagementTimeout,
tracer: c.tracer,
meter: c.meter,
},
}
}

Expand Down
Loading

0 comments on commit 7472b67

Please sign in to comment.