Skip to content

2.0 Release

Compare
Choose a tag to compare
@mrjgreen mrjgreen released this 09 Feb 09:11
· 44 commits to master since this release

####Breaking changes in the logging API

Instead of Database::getQueryLog() and Database::flushQueryLog() a psr logger aware interface has been implemented along with a Database::getLogger() method. The default logger buffers log items for retrieval in the same way: Database::getLogger()->getQueryLog(); and Database::getLogger()->flushQueryLog();

####An exception handler has been added to allow for customisable exception handling. The default exception handler now throws Database\Exception\QueryException instead of Database\QueryException. The default handler will now also include the connection parameters (without password) for context.