Skip to content

Releases: LinioIT/database

Fixed cast datatypes for DatabaseException

11 Mar 16:16
b48118d
Compare
Choose a tag to compare
Merge pull request #25 from LinioIT/fix/datatypes-cast-for-exceptions

fix: cast datatypes for DatabaseException

Added lazy connection to PDO

08 Aug 20:33
4dc1038
Compare
Choose a tag to compare
Merge pull request #17 from LinioIT/feature/lazy-load-pdo

Lazy load PDO object

Added method for automatic commit and rollback during transactions

06 Sep 19:26
Compare
Choose a tag to compare
  • Added executeTransaction(Closure $transaction);

PHP 7.1, Logging, and Cleaner Exceptions

31 Aug 21:56
Compare
Choose a tag to compare
  • 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

06 Apr 15:57
Compare
Choose a tag to compare

Included a method to escape an array of string values in MySQL.

Escape string values

11 Sep 23:09
Compare
Choose a tag to compare

Included a method to escape string values in MySQL.

Fixed multi-statement executes() with EMULATE_PREPARES = false

25 May 13:38
Compare
Choose a tag to compare
2.0.1

Merge pull request #5 from LinioIT/fix/execute-multiple-statements-wi…

Support for custom PDO attributes

17 Oct 21:39
Compare
Choose a tag to compare
Merge pull request #3 from LinioIT/support-pdo-attributes

Added new option to set PDO connection attributes

Last insert id method

15 Jun 06:17
Compare
Choose a tag to compare

This tag introduce the method DatabaseManager::getLastInsertId().

Database Transaction Support

09 Jun 03:15
Compare
Choose a tag to compare
1.0.1

Support for database transactions