php-sql-query-builder icon indicating copy to clipboard operation
php-sql-query-builder copied to clipboard

An elegant lightweight and efficient SQL Query Builder with fluid interface SQL syntax supporting bindings and complicated query generation.

Results 45 php-sql-query-builder issues
Sort by recently updated
recently updated
newest added

Hello, I been seen this library and I have a doubt regarding the injectBuilder function Since I saw it implemented in the AbstractBaseQuery class Could anyone explain me this to...

https://github.com/nilportugues/php-sql-query-builder/blob/277e87a8bca2ab833b18baad751eba64d0ddddd2/src/Syntax/Where.php#L293 In this and other php docs wrong type hint for `$value`. Analysis of this code using phpstan is failed. Please fix it. Thanks!

I was expecting to be able to build a query along the lines of: `$queryBuilder->select()->setTable('users.user');` Where the table `user` exists within a database `users`. Am I missing an undocumented method...

Hi there, When building a select() query with a where() and an equals() call, when I write the query it looks like "select * from `user` where `user`.`id` = :var1"....

Hi, I'm following the docs in order to test the package and I've got that exception: ``` TypeError: Argument 1 passed to NilPortugues\Sql\QueryBuilder\Builder\GenericBuilder::write() must implement interface NilPortugues\Sql\QueryBuilder\Manipulation\QueryInterface, instance of NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery...

I would like to know how to build the query like below that has conditions across tables. ``` SELECT TableA.ColA, TableB.ColB FROM TableA INNER JOIN TableB ON TableA.id=TableB.id WHERE (TableA.ColX...

``` $query = $this->builder->update(Mwst::TABLE, [ 'standard' => '0'] ); $query->where() ->notEquals('id', $vat->get('id') ) ->eq( 'sid', $this->login->getSID() ) ->eq( 'bid', $this->login->getBID() ); // later.. $sql = $this->builder->write( $query ); $data =...

Hi, sorry it's not a real issue but it's somehow possible to export solo raw SQL for update or insert?

I love this library, because it Works without establishing a connection to the database. but realy it have many bug wait to fix, I just want help other guys, maybe...

When using the MySqlBuilder the placeholders are Oracle-style (:v1) instead of MySql-style (?), which produces an error e.g. "Input array has 1 params, does not match query". How to change...