Skip to content

Releases: atrehhoff/database

v6.1.0

07 Aug 21:02

Choose a tag to compare

  • Added JsonSerializable interface to Database\Collection and Database\Entity for native JSON serialization support.
  • Implemented jsonSerialize() method in Collection and Entity to enable JSON encoding of collections and entities.
  • Improved Database\Connection to support multiple named singleton instances via an $alias parameter.
  • Added support for passing arguments to Entity::new() for flexible instantiation.
  • Improved Entity::find() to handle null results gracefully.
  • Improved Entity::search() to auto-generate search expressions from criteria if none are provided.
  • Added a guard in Entity::delete() to prevent deletion of non-existing entities.
  • Improved typehints and docblocks for clarity and consistency.
  • Minor code style and formatting improvements in UuidV4 and UuidV7 traits.
  • Handle empty arrays being passed for IN queries.
  • Support collections for IN queries.
  • Update tests.

Full Changelog: v5.5.0...v6.1.0

v5.5.0

24 Apr 05:52

Choose a tag to compare

  • Allow manually setting primary key using set()
  • Internal re-structure and maintenance release.

Full Changelog: v5.4.0...v5.5.0

v5.4.0

11 Oct 12:49

Choose a tag to compare

  • Saving entities only updates set data, instead of loaded, to help mitigate race-conditions.
  • New methods: Statement::getCollection() and Statement::getIterator()
  • Added optional 'clause' parameter to search methods.

Full Changelog: v5.3.0...v5.4.0

v5.2.1

28 Feb 21:30

Choose a tag to compare

  • Error from v5.2.0: Fix calling static methods in non-static context.
  • Updatred documentation.
  • Remove unused method.

Full Changelog: v5.2.0...v5.2.1

v5.2.0

28 Feb 20:20
64e3b2a

Choose a tag to compare

  • Primary key is now part of data array.
  • New method Database\EntityType::insert();
  • Setting charset is now part of DSN construction.

Full Changelog: v5.1.1...v5.2.0

v5.1.1

28 Feb 20:19

Choose a tag to compare

  • Maintenance update.
  • PHP8.3 compatibility.
  • Minor performance optimizations.

Full Changelog: v5.1.0...v5.1.1

v5.0.0

13 Dec 21:05

Choose a tag to compare

  • This update is backwards incompatible with previous methhods of Entity::from();
  • Coding standards update.
  • Return types update.
  • New instance cache.

Full Changelog: v4.0.0...v5.0.0

v4.0.0

26 Sep 20:00

Choose a tag to compare

This release is backwards incompatible

  • Collections now used for select'ive queries.
  • Entity::id(); wrongfully returning ID.
  • Table whitelisting
  • Collection tests
  • Code formatting
  • Performance updates
  • Updating README documentation

Full Changelog: v3.2.2...v4.0.0

v3.2.2

25 Sep 22:05

Choose a tag to compare

First release in a long while
Do not use older version.

Full Changelog: v3.2.1...v3.2.2