Skip to content

Commit

Permalink
GOCBC-1417: Add collections management support for PS
Browse files Browse the repository at this point in the history
Motivation
-----------
We need to add support for doing scope & collections management
over protostellar.

Changes
-------
Add collections manager interface and core and ps implementations.

Change-Id: I7ba1b7b3fe48bf51ed482b58a85cdb56f28ca79f
Reviewed-on: https://review.couchbase.org/c/gocb/+/191361
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Charles Dixon <chvckd@gmail.com>
  • Loading branch information
chvck committed May 24, 2023
1 parent b9ab216 commit 124e8d0
Show file tree
Hide file tree
Showing 11 changed files with 827 additions and 327 deletions.
7 changes: 3 additions & 4 deletions bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,9 @@ func (b *Bucket) ViewIndexes() *ViewIndexManager {
func (b *Bucket) Collections() *CollectionManager {
// TODO: return error for unsupported collections
return &CollectionManager{
mgmtProvider: b,
bucketName: b.Name(),
tracer: b.tracer,
meter: b.meter,
getProvider: func() (collectionsManagementProvider, error) {
return b.connectionManager.getCollectionsManagementProvider(b.Name())
},
}
}

Expand Down
Loading

0 comments on commit 124e8d0

Please sign in to comment.