Skip to content

Releases: paragonie/easydb

Version 3.1.1

29 Sep 16:12
v3.1.1

Choose a tag to compare

What's Changed

Full Changelog: v3.1.0...v3.1.1

Version 3.1.0

25 Sep 07:19
v3.1.0

Choose a tag to compare

  • Calling insertReturnId() no longer unavoidably throws on PostgreSQL. Now, it only throws if you don't specify a sequence name (optional third parameter).
  • The README documentation now covers insertReturnId()
  • Improved test coverage in #162, which includes integration tests with Firebird, MySQL, SQLite, Microsoft SQL Server, and PostgreSQL.
  • We also now test with PHP 8.5 in CI.
  • Updated the unit tests to support modern PHPUnit.
  • Added mutation testing to CI.

Version 3.0.4

18 Sep 20:17
v3.0.4
fc2f4b4

Choose a tag to compare

What's Changed

  • Use prepare/statement also when there is no parameters by @jeanmonod in #159
  • Ignore tests and workflows with "export-ignore" on .gitattributes by @erikn69 in #161
  • Fix csv() when using non-default fetch style by @alffonsse in #160

New Contributors

Full Changelog: v3.0.3...v3.0.4

Version 3.0.3

15 Jul 16:26
v3.0.3

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.2...v3.0.3

Version 3.0.2

08 Jun 05:23
v3.0.2

Choose a tag to compare

  • Guarantee that EasyDB::row() always returns an array instead of throwing a TypeError when encountering null. See also: #144.

Version 3.0.1

21 May 16:30
v3.0.1

Choose a tag to compare

  • #143:
    Don't assume the array passed to insertMany() is indexed at 0.
  • Fixed the type declaration of the $duplicates_mode parameter to be nullable in buildInsertQueryBoolSafe().

Version 3.0.0

11 May 18:31
v3.0.0

Choose a tag to compare

  • #141:
    Increased minimum PHP Version to 8.0
    • Lots of code refactoring went into this, including strict-typing with PHP 8's new support for Union Types.
  • #142:
    Added support for Psalm Security Analysis

Version 2.12.0

11 May 16:42
v2.12.0

Choose a tag to compare

  • Migrated from Travis CI to GitHub Actions
  • #136:
    Added EasyPlaceholder for calling SQL functions on insert/update queries
  • #137:
    Added csv() method to satisfy feature request #100
  • Miscellaneous boyscouting

Version 2.11.0

20 Jan 01:07
v2.11.0

Choose a tag to compare

  • #120:
    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.

Version 2.10.0

15 Aug 22:59
v2.10.0

Choose a tag to compare

  • 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