A driver to use the aws aurora serverless rds data api in the doctrine database abstraction layer
Simple enough, php 8 is now supported and tested while php 7.1 support is dropped.
It could happen that moderatly large queries (7kb+) with emulated numeric parameters fail because of a regex issue. I could improve the expression so that multiple megabytes of query now work flawlessly.
doctrine:database:create
command).
It is also now possible to switch databases using use dbname;
which won't result in an actual query but will internally set the database name in the connection instance. $driver->getDatabase($connection)
will also correctly report the database in that case.pauseRetries
and pauseRetryDelay
. You can read more about them in the readme.
I'll continue to default to an error instead of blocking as waiting for a minute is usually not a good idea. Lambda events will automatically retry after a minute (using exponential backoff) so you normally don't have to worry about it and interactive page loads will always feel broken if the database is paused so you'll need a better handling in that case.There was a new bug introduced though separating the statement and the result.
FetchMode::CUSTOM_OBJECT
is now implemented (see #3).FetchMode::COLUMN
now supports the index argument to tell which column to return.The main goal of this release is to stabilize and test everything. I decided to drop the beta suffix because the core functionality should work and is mostly tested. There are still todos and missing implementations in some places but in obscure places like when you try to iterate a result backwards.
Nemo64\DbalRdsData\AbstractConnection::quote
implementation and try to find situations in which this breaks and tell me.Doctrine\DBAL\Exception\TableNotFoundException
and Doctrine\DBAL\Exception\SyntaxErrorException
.6000
and converted to an Doctrine\DBAL\Exception\ConnectionException
so it can easily be handled.This is the first release where I extracted this library out of another project.