All Versions
30
Latest Version
Avg Release Cycle
98 days
Latest Release
888 days ago

Changelog History
Page 1

  • v2.11.0 Changes

    January 20, 2020
    • #120:
      0๏ธโƒฃ EasyStatement now defaults to WHERE 1 = 1 instead of WHERE 1
      to ensure success with PostgreSQL.
    • #122:
      ๐Ÿ— Builds on PHP 7.4 in Travis CI, installs on PHP 8.
  • v2.10.0 Changes

    August 15, 2019
    • ๐Ÿ‘ป You can now pull the original exception (which may leak credentials via stack trace) from a ConstructorFailed exception by calling the new getRealException() method.
    • โž• Added insertIgnore() (Insert a row into the table, ignoring on key collisions)
    • โž• Added insertOnDuplicateKeyUpdate() (Insert a row into the table; or if a key collision occurs, doing an update instead)
    • #111: EasyStatement: Don't fail with empty IN() statements
  • v2.9.0 Changes

    March 12, 2019
    • You can now side-step credential leakage in the Factory class
      by calling Factory::fromArray([$dsn, $username, $password, $options])
      instead of Factory::create($dsn, $username, $password, $options).
  • v2.8.0 Changes

    January 03, 2019
    • Our exceptions now integrate with Corner.
  • v2.7.0 Changes

    September 23, 2018

    ๐Ÿ”„ Changed the behavior of several public APIs to invoke $this->prepare() instead of $this->pdo->prepare(). This might seem subtle, but in actuality, it allows classes that extend EasyDB to implement prepared statement caching.

    ๐Ÿ‘€ See https://github.com/paragonie/easydb-cache for more information

  • v2.6.2 Changes

    June 14, 2018

    ๐Ÿ›  Fixed issues with insert() and booleans. See #84

  • v2.6.1 Changes

    May 01, 2018

    We've stopped the 5to7 approach of releasing v1 branches, due to reasons outlined in the v1.x-legacy branch. To that end, the v2 branch now correctly requires PHP 7. This isn't a BC break since v2 of EasyDB would just syntax error on PHP 5 anyway.

    ๐Ÿ› Bug fixes:

    • #77: Detect when the
      driver is missing and throw a distinct error message to aid in debugging.
  • v2.6.0 Changes

    • ๐Ÿ›  #69: Fixed an error when using EasyDB with SQLite.
    • #70: You can now use EasyStatement objects for the conditions instead of arrays in EasyDB::update() and EasyDB::delete(). (Arrays are still supported!)
  • v2.5.1 Changes

    • ๐Ÿ›  Fixed boolean handling for SQLite databases.
  • v2.5.0 Changes

    • #56: EasyDB::q() and EasyDB::row() no longer explicitly force PDO::FETCH_ASSOC. Thanks @nfreader.
    • #57: Added EasyDB::insertReturnId() which wraps insert() and lastInsertId(). Important: Do not use this on PostgreSQL, as it is not reliable. Use insertGet() instead, as you normally would have. Reported by @duskwuff.
    • #58: Empty EasyStatement clauses no longer cause broken queries. Reported by @duskwuff.
    • ๐Ÿ›  #59: Fixed grouping/precedence issues with EasyStatement subqueries. Reported by @duskwuff.