-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from sandrokeil/feature/improve-statement
Improve statement / cursor handling
- Loading branch information
Showing
15 changed files
with
581 additions
and
88 deletions.
There are no files selected for viewing
This file contains 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,65 @@ | ||
# Change Log | ||
# Changelog | ||
|
||
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* | ||
## TBA | ||
|
||
### Added | ||
|
||
* Dependencies `TypeSupport` and `CursorType` for `Statement` class | ||
* Interface `StatementHandler` | ||
* `TypeSupport` interface to `TransactionSupport` interface | ||
* Transaction methods to TransactionSupport` interface | ||
* Allow the configuration of type and guard for handler classes | ||
|
||
### Deprecated | ||
|
||
* Nothing | ||
|
||
### Removed | ||
|
||
* Dependencies `ClientInterface` and `RequestInterface` from `Statement` class | ||
|
||
### Fixed | ||
|
||
* Cursor id can be null in `Statement` class | ||
|
||
## 0.2.0 (2020-06-17) | ||
|
||
### Added | ||
|
||
* Use PSR-17 (HTTP factory) | ||
* Handler classes for easier usage | ||
* Improved structure and simplified code | ||
* Folder with examples | ||
|
||
### Deprecated | ||
|
||
* Nothing | ||
|
||
### Removed | ||
|
||
* Velocypack support (to much maintenance) | ||
* PHP <=7.1 support | ||
|
||
### Fixed | ||
|
||
* Nothing | ||
|
||
## 0.1.0 (2019-03-30) | ||
|
||
### Added | ||
|
||
> Don't use this release | ||
* Tagged before removing VPACK support. Will maybe added later again. | ||
|
||
### Deprecated | ||
|
||
* Nothing | ||
|
||
### Removed | ||
|
||
* Nothing | ||
|
||
### Fixed | ||
|
||
* Nothing |
This file contains 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 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,35 @@ | ||
<?php | ||
/** | ||
* Sandro Keil (https://sandro-keil.de) | ||
* | ||
* @link http://github.com/sandrokeil/arangodb-php-client for the canonical source repository | ||
* @copyright Copyright (c) 2018-2020 Sandro Keil | ||
* @license http://github.com/sandrokeil/arangodb-php-client/blob/master/LICENSE.md New BSD License | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ArangoDb\Exception; | ||
|
||
use ArangoDb\Type\Type; | ||
|
||
final class NoCursorId extends RuntimeException | ||
{ | ||
/** | ||
* @var Type | ||
*/ | ||
private $type; | ||
|
||
public static function forType(Type $type): self | ||
{ | ||
$self = new self('There is no cursor id to get more results.'); | ||
|
||
$self->type = $type; | ||
return $self; | ||
} | ||
|
||
public function getType(): Type | ||
{ | ||
return $this->type; | ||
} | ||
} |
This file contains 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 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 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 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.