You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
just a simple suggestion as it's a feature I implemented many times:
add IGNORE for INSERT (just need a boolean like SelectQuery::distinct)
add the ability to compile this type of query INSERT INTO table (username, email) SELECT username, email FROM other_table WHERE.... with a new method InsertQuery::select(SelectQuery $select) and building the last part of the INSERT statement with the compiled SELECT statement.
kind regards,
maks
unrelated
You can use self as a return type for any public function fluentMethod(): self
In php-do blocks it's usually better to use @return $this if the return value is the same instance (and not for instance a clone)
The text was updated successfully, but these errors were encountered:
Hello @wolfy-j ,
just a simple suggestion as it's a feature I implemented many times:
INSERT INTO table (username, email) SELECT username, email FROM other_table WHERE....
with a new methodInsertQuery::select(SelectQuery $select)
and building the last part of the INSERT statement with the compiled SELECT statement.kind regards,
maks
unrelated
public function fluentMethod(): self
@return $this
if the return value is the same instance (and not for instance a clone)The text was updated successfully, but these errors were encountered: