Aura.SqlQuery
Aura.SqlQuery copied to clipboard
Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server.
I'm on postgres and am writing a select that converts an integer field to varchar, so I can compare using "like". The 2.x branch misquotes the cast structure's datatype. ```php
The documentation in examles allow to used named placeholders in where clause like this: ``` // bind 'zim_val' to the :zim placeholder ->where('zim = :zim', ['zim' => 'zim_val']) ``` But...
Hi all, esp. @pavarnos -- Earlier, we removed ?-placeholder replacements from where(), having(), etc., and replaced it with binding of named parameters as part of the method call. So, in...
SELECT * FROM table1 USE INDEX (col1_index,col2_index)
It would be convenient to be able to pass a query directly to `union()` instead of rerunning the same commands on the original query. Here's what I thought I would...
Postgresql supports lateral joins but they currently cannot be used. This makes it possible.
It would be nice if we could use new PostgreSQL lateral join. Any way to do it so far?
Maybe I'm missing something... How would I replicate the following? ``` where ( find_in_set(tests.`compound.group`, :compound_groups) or find_in_set(tests.`compound.name`, :compound_names) ) and ( find_in_set(isolates.`species.genus`, :species_genera) or find_in_set(isolates.`species.name`, :species_names) ) ``` The parentheses...
Hello, I think we can improve the IN statement for 3.0 release. Maybe allow this syntax : ` $query->where('user_Id IN (?)', [1, 2, 3, 4, 5]); ` And the builder...
Hi, everyone. Method 'where' with passed two params don't working for me. I do that `->where('gir = :gir', ['gir' => 'gir_val'])` Also phpstorm shows warning with the text: > Method...