-
Notifications
You must be signed in to change notification settings - Fork 266
PHPLIB-70: DatabaseInfo models and index management #7
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
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b573271
Link to canonical documentation URL
jmikola 793bb8b
PHPLIB-72: Use model class when listing databases
jmikola 7b6b8e0
Link to interface docs from implementations
jmikola 6a17ac9
PHPLIB-69: Index drop methods
jmikola 982889c
Fix word wrap in documentation
jmikola 7191886
Use type map for database and collection enumeration
jmikola 2f63218
PHPLIB-70: Add class-level docs to model iterators
jmikola 48b3de1
PHPLIB-75: Refactor model classes and add class-level docs
jmikola 79d07ff
PHPLIB-46: Index info and corresponding iterator class
jmikola e950dae
PHPLIB-46: Index enumeration methods
jmikola 4de66e3
PHPLIB-63: Index creation methods
jmikola 3108162
PHPLIB-46, PHPLIB-63, PHPLIB-69: Functional tests for index methods
jmikola 39cf918
PHPLIB-63: Use model class to validate index creation args
jmikola 2083eed
PHPLIB-63: Empty input to createIndexes() is a NOP
jmikola 33f6ca4
PHPLIB-75: Use package BadMethodCallException for IndexInfo
jmikola 5639510
PHPLIB-69: Do not allow empty index name for dropIndex()
jmikola a0aceaf
PHPLIB-63: Test custom name for index creation
jmikola bca7df7
PHPLIB-63: Refactor to avoid else condition and void methods
jmikola 5a6ff7f
Use wire protocol version constants for feature detection
jmikola 3df5e5e
Bump ext-mongodb dependency to 0.5.1
jmikola 7ba1966
PHPLIB-63: Fix index creation for legacy servers
jmikola File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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,7 @@ | ||
<?php | ||
|
||
namespace MongoDB\Exception; | ||
|
||
class BadMethodCallException extends \BadMethodCallException implements Exception | ||
{ | ||
} |
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,7 @@ | ||
<?php | ||
|
||
namespace MongoDB\Exception; | ||
|
||
interface Exception | ||
{ | ||
} |
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,7 @@ | ||
<?php | ||
|
||
namespace MongoDB\Exception; | ||
|
||
class InvalidArgumentException extends \InvalidArgumentException implements Exception | ||
{ | ||
} |
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,11 @@ | ||
<?php | ||
|
||
namespace MongoDB\Exception; | ||
|
||
class UnexpectedTypeException extends InvalidArgumentException | ||
{ | ||
public function __construct($value, $expectedType) | ||
{ | ||
parent::__construct(sprintf('Expected argument of type "%s", "%s" given', $expectedType, is_object($value) ? get_class($value) : gettype($value))); | ||
} | ||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this string is empty, we should raise an InvalidArgumentException.