Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sql): allow delete queries with auto-joining via sub-queries #538

Merged
merged 1 commit into from
May 2, 2020

Commits on May 2, 2020

  1. feat(sql): allow delete queries with auto-joining via sub-queries

    ```typescript
    qb.delete({ books: { author: 123 } });`
    ```
    
    will result in following query:
    
    ```sql
    delete from `publisher2` where `id` in (select `e0`.`id` from (
      select distinct `e0`.`id` from `publisher2` as `e0` left join `book2` as `e1` on `e0`.`id` = `e1`.`publisher_id` where `e1`.`author_id` = ?
    ) as `e0`)
    ```
    
    Closes #492
    B4nan committed May 2, 2020
    Configuration menu
    Copy the full SHA
    18ee269 View commit details
    Browse the repository at this point in the history