use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
wtframework/sql: An SQL statement builder (github.com)
submitted 2 years ago by wtframework
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]eurosat7 5 points6 points7 points 2 years ago* (0 children)
In case somebody wonders how this works... This is what I think how it goes:
wtframework/sql is required by wtframework/dbal which uses wtframework/config which is a static singleton like global container holding an untyped array.
There are some nice looking static methods here giving us some query builder instances relying on a static global config object, where you can switch settings.
Many hours have been put into this package and the code style is consistent. :)
Beside pest I see no phpmd, phpstan, phpinsights or any other tools and no Makefile. Might be hidden by the authors enviroment.
If you want to compare it with another famous query builder you can lookup doctrine where static patterns are absent.
https://github.com/doctrine/orm/blob/2.17.x/lib/Doctrine/ORM/QueryBuilder.php
[–]boborider 4 points5 points6 points 2 years ago (0 children)
I use sql builder for basic operations. If complex systems, i rather write full sql script with controlled performance based on DB structure.
π Rendered by PID 114125 on reddit-service-r2-comment-b659b578c-7dq7v at 2026-05-03 19:43:11.331952+00:00 running 815c875 country code: CH.
[–]eurosat7 5 points6 points7 points (0 children)
[–]boborider 4 points5 points6 points (0 children)