-
Notifications
You must be signed in to change notification settings - Fork 11
PCBC-960 Merge protostellar branch to master #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Matt-Woz
merged 21 commits into
couchbase:main
from
Matt-Woz:PCBC-960_merge_protostellar_branch_to_master
Nov 14, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
6c8bb96
Migrate protostellar files
Matt-Woz 4e0d16e
Update PS files
Matt-Woz 893f302
Move generated files
Matt-Woz a3c1f16
Updating PS files
Matt-Woz 562fa12
Update tests to use interfaces, skip if Protostellar
Matt-Woz ea941b6
Add management interfaces to classic
Matt-Woz 88fa724
Change datastructures to use interfaces
Matt-Woz c9a0d46
Add PS support in Cluster
Matt-Woz 5ae3992
add grpc as dependency to composer, update package.xml, add/update sc…
Matt-Woz f745da8
Add validation check to lookupinresult methods
Matt-Woz c00ded3
Cleaning
Matt-Woz 04867ba
fix style
Matt-Woz 5f46086
revert package.xml update
Matt-Woz ed070cc
Update PS files
Matt-Woz cfb7a32
Update PS implementation files
Matt-Woz 7a31a10
Update exception mapping per RFC
Matt-Woz 8ff82f8
Add PermissionDeniedException
Matt-Woz 26a9dc7
Update package.xml
Matt-Woz bdc2c99
Update exception converter
Matt-Woz 22fe039
undo test script changes
Matt-Woz 2bc2c2e
Add support for simple string sorting via FieldSorting
Matt-Woz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "src/deps/couchbase-cxx-client"] | ||
path = src/deps/couchbase-cxx-client | ||
url = https://github.com/couchbaselabs/couchbase-cxx-client.git | ||
[submodule "src/deps/protostellar"] | ||
path = src/deps/protostellar | ||
url = https://github.com/couchbase/protostellar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright 2014-Present Couchbase, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Couchbase\Exception; | ||
|
||
class PermissionDeniedException extends CouchbaseException | ||
{ | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Couchbase\Management; | ||
|
||
interface BucketManagerInterface | ||
{ | ||
public function createBucket(BucketSettings $settings, CreateBucketOptions $options = null); | ||
|
||
public function updateBucket(BucketSettings $settings, UpdateBucketOptions $options = null); | ||
|
||
public function dropBucket(string $name, DropBucketOptions $options = null); | ||
|
||
public function getBucket(string $name, GetBucketOptions $options = null): BucketSettings; | ||
|
||
public function getAllBuckets(GetAllBucketsOptions $options = null): array; | ||
|
||
public function flush(string $name, FlushBucketOptions $options = null); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Couchbase\Management; | ||
|
||
interface CollectionManagerInterface | ||
{ | ||
public function getAllScopes(GetAllScopesOptions $options = null): array; | ||
|
||
public function createScope(string $name, CreateScopeOptions $options = null); | ||
|
||
public function dropScope(string $name, DropScopeOptions $options = null); | ||
|
||
public function createCollection($scopeName, $collectionName = null, $settings = null, $options = null); | ||
|
||
public function dropCollection($scopeName, $collectionName = null, $options = null); | ||
|
||
public function updateCollection(string $scopeName, string $collectionName, UpdateCollectionSettings $settings, UpdateCollectionOptions $options = null); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Couchbase/Management/CollectionQueryIndexManagerInterface.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Couchbase\Management; | ||
|
||
interface CollectionQueryIndexManagerInterface | ||
{ | ||
public function getAllIndexes(GetAllQueryIndexesOptions $options = null): array; | ||
|
||
public function createIndex(string $indexName, array $fields, CreateQueryIndexOptions $options = null); | ||
|
||
public function createPrimaryIndex(CreateQueryPrimaryIndexOptions $options = null); | ||
|
||
public function dropIndex(string $indexName, DropQueryIndexOptions $options = null); | ||
|
||
public function dropPrimaryIndex(DropQueryPrimaryIndexOptions $options = null); | ||
|
||
public function buildDeferredIndexes(BuildQueryIndexesOptions $options = null); | ||
|
||
public function watchIndexes(array $indexNames, int $timeoutMilliseconds, WatchQueryIndexesOptions $options = null); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Couchbase\Management; | ||
|
||
interface QueryIndexManagerInterface | ||
{ | ||
public function getAllIndexes(string $bucketName, GetAllQueryIndexesOptions $options = null): array; | ||
|
||
public function createIndex(string $bucketName, string $indexName, array $fields, CreateQueryIndexOptions $options = null); | ||
|
||
public function createPrimaryIndex(string $bucketName, CreateQueryPrimaryIndexOptions $options = null); | ||
|
||
public function dropIndex(string $bucketName, string $indexName, DropQueryIndexOptions $options = null); | ||
|
||
public function dropPrimaryIndex(string $bucketName, DropQueryPrimaryIndexOptions $options = null); | ||
|
||
public function buildDeferredIndexes(string $bucketName, BuildQueryIndexesOptions $options = null); | ||
|
||
public function watchIndexes(string $bucketName, array $indexNames, int $timeoutMilliseconds, WatchQueryIndexesOptions $options = null); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.