pecee-pixie

Lightweight, easy-to-use querybuilder for PHP inspired by Laravel Eloquent - but with less overhead.

MIT License

Downloads
22.7K
Stars
41
Committers
22

Bot releases are visible (Hide)

pecee-pixie - Version 4.16.3 Latest Release

Published by skipperbent 8 months ago

  • Bugfixes
pecee-pixie - Version 4.16.2

Published by skipperbent 8 months ago

  • Bugfixes
pecee-pixie - Version 4.16.1

Published by skipperbent 8 months ago

  • Fixed bindings not casted as array before merge.
pecee-pixie - Version 4.16.0

Published by skipperbent 8 months ago

  • Fixed binding issues on nested raw statements.
pecee-pixie - 4.15.8

Published by skipperbent over 1 year ago

  • Fixed params with ? not escaped correctly
pecee-pixie - 4.15.7

Published by skipperbent over 1 year ago

  • Make sure select doesn't pick the same fields (select columns unique).
pecee-pixie - 4.15.6

Published by skipperbent over 1 year ago

  • Exception class: Fixed issue causing notice when error has no message defined.
pecee-pixie - Version 4.15.5

Published by skipperbent over 1 year ago

  • Skip sanitation if first character contains ".
pecee-pixie - Version 4.15.4

Published by skipperbent over 3 years ago

  • Fixed raw bindings not working as expected for join + generally optimised raw-bindings.
pecee-pixie - Version 4.15.3

Published by skipperbent over 3 years ago

  • Fixed Raw not working correctly for join statements, for example:
$query->join('hostnames', 'host', '=', $this->raw('?', [$host]))
  • Changed references for SqlServer class.
pecee-pixie - Version 4.15.2

Published by skipperbent over 3 years ago

  • Fixed bindings on for where key statements.
pecee-pixie - Version 4.15.1

Published by skipperbent over 3 years ago

  • Fixed issue with raw when used in conjunction with alias (issue: #137 - thanks to @mrcnpdlk)
pecee-pixie - Version 4.15.0

Published by skipperbent over 3 years ago

  • [!!!] Moved EventHandler::registerEvent so optional $table parameter comes after required.
  • Fixed Raw bindings not set properly when using within select statement like: select($this->builder->raw('CONCAT(simple, ?)', ['criteria'])).
  • Changed $table parameter in EventHandler::registerEvent to use EventHandler::ANY constant instead of null.
  • Simplified duplicate select-statement code in BaseAdapter & SqlServerAdapter.
  • Tests: Updated PHP-unit to version 8 for compatibility with PHP8.
  • Tests: Fixed changed PHP-unit references to work with changes in version 8.
  • Updated documentation to reflect changes.
pecee-pixie - Version 4.14.0

Published by skipperbent over 3 years ago

  • Fixed Raw bindings not being set properly on some occasions for instance update(['alias' => $query->raw('?',['value'])]).
  • Beatified queries. Queries now have the correct spacing between values.
  • Simplified BaseAdapter code by using arrayStr instead of foreach loops.
  • Tests: Added QueryBuilderBehaviorTest::testRawStatementsWithinCriteria.
  • Tests: Updated unit-tests to work with new queries.
pecee-pixie - Version 4.13.0

Published by skipperbent over 3 years ago

  • Feature: Added better overwrite of where/whereNull etc if enabled.
  • Issue #123: Added better phpDoc
  • Feature: Added phpstan.
  • Updated phpUnit.
pecee-pixie - Version 4.12.2

Published by skipperbent over 3 years ago

Changelog

  • Fixed alias not checking if key is of closure/callable type.
  • Updated readme
pecee-pixie - Version 4.12.1

Published by skipperbent over 3 years ago

Changelog

  • Fixed alias-prefix property not being set properly.
  • Renamed prefix property to aliasPrefix in QueryBuilderHandler
pecee-pixie - Version 4.12.0

Published by skipperbent over 3 years ago

Changelog

  • Feature: Added support for object with __toString magic methods.
  • Feature: Added support for changing alias mid-way. Columns will now inherit the change.
  • Feature: Added SQL Server adapter class (thanks to @advicente).
  • Feature: Added more advanced type parsing for objects.
  • Feature #109: Added support for FOR UPDATE using the QueryBuilderHandler::for method.
  • Fixed: Object not quoted correctly as strings.
  • Fixed: Problem with event arguments using wrong parameters (thanks to @Kemekaze).
  • Fixed: error-codes for sqlite.
  • Fixed: Fixed bug with select that was defaulting to MySQL sanitisation, should now work for Postgres and others (thanks to @lakesta).
  • Fixed #110: Changed return-type to self to support ide's that doesn't parse phpDocs properly.
  • Fixed #113: Aliasing table support for update stmt (thanks to @mrcnpdlk).
  • Fixed #117: nullable return-type for Connection::getStoredConnection.
  • Cleanup & optimisations.
pecee-pixie - Version 4.11.0

Published by skipperbent about 6 years ago

  • Fix error handling for SQLite adapter (issue: #104)
  • Changed PDO-SQLite to suggested and dev composer extension.
  • Unit-tests for SQLite exceptions + optimisation.
  • CI (Scrutnizer & Travis) MySQL support (ver 5.7) & PHP (ver 7.2).
  • CI Sqlite support (in memory mode).
pecee-pixie - Version 4.10.0

Published by skipperbent about 6 years ago

  • Fixed wrong return-type when using COUNT (issue #91).
  • Fixed only strict names taken into account with no wildcard * and/or Raw instances (issue: #92).
  • Added Travis-ci with MySQL support (issue: #97)
  • Added PDO extension to composer file and added PDO extension as requirement in README.
  • Added SQLite extension to composer file and added PDO extension as requirement in README.
  • Fixed connections overlapping when using multiple connections (issue #98)
  • Added support for more advanced query-statements when using update and delete (issue: #93)
  • Added optional $columns argument to delete method in QueryBuilderHandler to specify which columns to delete.
  • Join now supports empty key and value, which will remove the ON statement from the query.
  • Added unit-tests for new features.
  • Added unit tests for multiple connections.
  • Minor optimisations.