Skip to content

Releases: leafsphp/db

🥙 Flashy

30 Sep 21:19
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2...v2.2.1

💾 Floppy Disk

25 Aug 02:20
2602273
Compare
Choose a tag to compare

v2.2 - 25 August 2024

Fixed

  • orderBy method chaining fix by @Bazowsky
  • add support for client_encoding option with pgsql (fix #16) by @haruspeks
  • Patch up config inconsistency

Changed

  • Switched to new Leaf Config API

New Contributors

💿 Compact Disc '1'

01 Sep 18:57
6d7cad8
Compare
Choose a tag to compare

v2.1.1 - 1 Sep 2023

Added

  • Added support for database urls

💿 Compact Disc

27 Feb 17:39
5b66375
Compare
Choose a tag to compare

v2.1.0 - 27 Feb 2023

Added

  • Added tableExists method to check if a table exists
  • Added createTable method
  • Added dropTable method
  • Added backup method
  • AddedcreateTableIfNotExists method
  • Added groupBy method
  • Added tests & linting
  • Add last insert id

Fixed

  • Patch up array to string conversion

Removed

  • Remove dummy/unused code

🌿 Chloroplast '2'

29 May 23:02
7fb2aa1
Compare
Choose a tag to compare

v2.0.2 - 29 May 2022

Fixed

  • Fixed reading of DB_PORT env
  • Fixed array parameter for db init
  • Fixed single state for db core

🌿 Chloroplast

24 Jan 18:10
52137ef
Compare
Choose a tag to compare

v2.0.1 - 24 Jan 2022

Fixed

  • fixed inconsistent where blocks
  • fixed single unique bug
  • fixed update query bug

Changed

  • improve instance loading

Removed

  • clean up spaces in query

v2.0

16 Jan 11:57
4595d80
Compare
Choose a tag to compare

Added

  • Added support for more database types
  • Added support for leaf 3's functional mode
  • Added create method
  • Added drop method
  • Added support for inserting multiple rows
  • Added results method
  • Added aliases for older commands
  • Added find method
  • Added better typing

Fixed

  • orderBy now modifies the query instead of simply appending ORDER BY...
  • limit now modifies the query instead of simply appending LIMIT...
  • first now modifies the query instead of running the query and returning the first entry
  • last now modifies the query instead of running the query and returning the last entry

Changed

  • Switched from mysqli to PDO
  • Restructured leaf db
  • Updated gitignore
  • Moved search wildcards to utils
  • Moved heavy query building to Leaf\Db\Builder class
  • execute no longer takes in the params types
  • where blocks now take in an operator (optional)

Removed

  • Removed validate method
  • Removed leaf db
  • Removed method tracking
  • Removed base where builders

v1.0

20 Sep 20:56
Compare
Choose a tag to compare

20 Sep, 2021