- Added support for CrateDB bulk operations, for improved efficiency on DML operations.
- Added deprecation notice about PHP7.
- Documentation: Added two standalone example programs about inserts
- Added
Crate\PDO\PDOCrateDB
as a better export symbol, because importingCrate\PDO\PDO
without alias into the main namespace collides with PHP's nativePDO
class. - Maintenance: Added more type hints, mitigating lots of deprecation warnings.
- UX: Rename
Crate\PDO\PDO
toCrate\PDO\PDOCrateDB
. It will not break existing code, because there is a compatibility shim in place. However, it is marked deprecated / for removal on one of the upcoming releases.
- Aligned
PDO::errorCode()
with specification, to return error code as string type. See also https://www.php.net/manual/en/pdo.errorcode.php. The signature ispublic PDO::errorCode(): ?string
.
- Added support for PHP 8.1 and PHP 8.2
- Make it possible to use Composer authoritative classmap. Thanks, @JulianMar!
- PHP8: Fix signatures of
PDOStatementImplementationPhp8
for compatibility withDoctrine\DBAL\Driver\PDOStatementImplementations
- Evaluate
statementClass
attribute in order to overridePDO::ATTR_STATEMENT_CLASS
- Add possibility to set the statement class using
ATTR_STATEMENT_CLASS
- Added support for PHP 8.0
- Removed support for PHP 7.2, it has reached end of life
- Bumped required guzzle http client dependency to
^7.2
- Bumped required guzzle http client dependency to
~7.0
- Fixed boolean parsing when binding a
PDO::PARAM_BOOL
parameter value. - Fixed cast exception when binding a NULL value to a parameter which is not
of type
PDO::PARAM_NULL
.
- Added support for SSL via PDO::CRATE_ATTR_SSL_MODE
- Updated provisioning using ubuntu xenial64 and the latest version of crate
- BREAKING: Refactored the internal http server/client implementation to a
simpler more contained version in the
ServerPool
- BREAKING: Upgraded the library to use php 7.2 features
- Add support for fetch style
PDO::FETCH_OBJ
.
- Fix: binding NULL as first param in queries is now supported
- Fix: fetching the same column twice could cause an error
- Changed default request timeout to
0
(indefinitely)
- Expose
getServerVersion()
andgetServerInfo()
on the PDO implementation which return the version number of the Crate server connected to.- Fix: having the same named parameter multiple times in a prepared SQL statement caused incorrect parameter substitution with bound values
- Fixed an issue that occur if parameters are passed in a different order than specified in the sql statement.
- Updated dependency: guzzlehttp/guzzle to ~6.0 WARNING: This is a backward incompatible change!
- Support for multiple hosts in DSN connection string
- Added support for using a default schema in PDO connection via
/schema
suffix in connection string
- Verify support for PHP 7 Updated composer.json to meet dependencies
- Support binding named parameters with a leading : character
- Set auth attribute in constructor of PDO class if credentials are available
- Support guzzle http basic auth at Crate/PDO through doctrine dbal connection user credetials
- Fix performance issues by switching http client library to
guzzle
.
- Fix: Literals containing a : character were misinterpreted as named parameters.
- Nailed dependency versions of amphp/artax and amphp/amp to prevent composer from fetching newer, incompatible releases
- Fix setting of the
timeout
attribute.
- Support crate array and object data types
- Code style issues
- Using a common DSN format now instead of an URI. See README.rst for details. WARNING: This is a backward incompatible change!
- Added support for named parameters (required by dbal driver)
- Fixed the way row count is calculated
- Update dependencies, rdlowrey/artax moved to amphp/artax
- Initial release