Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Hints for new features for INSERT #44

Description

@pine3ree

Hello @wolfy-j ,

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions