Releases: LinioIT/database
Releases · LinioIT/database
Fixed cast datatypes for DatabaseException
Added lazy connection to PDO
Merge pull request #17 from LinioIT/feature/lazy-load-pdo Lazy load PDO object
Added method for automatic commit and rollback during transactions
- Added
executeTransaction(Closure $transaction);
PHP 7.1, Logging, and Cleaner Exceptions
- Added logging support
- Call setLogger() on the DatabaseManager to pass a real logger in
- Uses PSR-3 compatible loggers
- Refactored exceptions and introduced new ones
- DatabaseException is now the base exception
- Most previous uses of DatabaseException now use FetchException
- Introduced TransactionException to handle database transaction errors
- Require PHP 7.1
- Upgraded to PHPUnit 6
Escape an array of string values
Included a method to escape an array of string values in MySQL.
Escape string values
Included a method to escape string values in MySQL.
Fixed multi-statement executes() with EMULATE_PREPARES = false
2.0.1 Merge pull request #5 from LinioIT/fix/execute-multiple-statements-wi…
Support for custom PDO attributes
Merge pull request #3 from LinioIT/support-pdo-attributes Added new option to set PDO connection attributes
Last insert id method
This tag introduce the method DatabaseManager::getLastInsertId()
.
Database Transaction Support
1.0.1 Support for database transactions