Skip to content

Releases: PhpGt/SqlBuilder

Builder classes and improved CI

17 Sep 12:34
ac60cad
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

November 2022

15 Nov 14:16
9990d15
Compare
Choose a tag to compare

First stable release, now the create,drop,alter table query representations are implemented.

What's Changed

New Contributors

Full Changelog: v0.2.0...v1.0.0

New features ready for v1

24 Mar 18:00
0405dc8
Compare
Choose a tag to compare
Pre-release

This release is intended to be feature complete, ready for v1, but as it hasn't been actively used in any real-world project, the v1 release is going to wait.

New features:

  • Indexed & named parameter helpers - if you are referencing a field that has the same name as an injected parameter, or the injected parameter is done by index, you can use the :fieldName and ?fieldName helper syntax to remove duplication.
  • OOP improved greatly, abstract classes are more meaningful for example, delete from tablename - a delete query can't not have a from table, so now neither can the abstract delete class.
  • insert...select and replace...select queries are now fully implemented.

Compatibility improvements

28 Jan 10:01
03328d4
Compare
Choose a tag to compare
Pre-release

In this patch pre-release, we are gaining the following improvements:

  • All functions have better type safety
  • Move to Github Actions CI for greatly improved tests and quality assurance
  • Documentation fixes

Main functionality implemented

22 Sep 20:22
8779480
Compare
Choose a tag to compare
Pre-release

The SqlBuilder repository gets a major step closer to being production-ready with this pre-release.

Implemented now are the InsertQuery, SelectQuery, UpdateQuery, DeleteQuery and ReplaceQuery classes, with all the functions ready for representing tables, conditions, limits, orders, etc.

Still to come before v1 is a refactoring to improve the query classes inheritance (some functionality is shared between different query types), compatibility testing with other database engines, and improvements to the return types of functions.

Base-logic tested

13 Mar 13:36
Compare
Choose a tag to compare
Base-logic tested Pre-release
Pre-release

After a few coding explorations, the general layout and workflow of SqlBuilder have been defined. Every type of query extends the abstract SqlBuilder class. These extensions, such as SelectBuilder will also be abstract, expecting to see developers' classes implement a concrete extension.

Following releases will mark the different types of Builder for Update, Delete, Insert.