Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Added method QueryBuilder().remove_where(column) #311

Open
wants to merge 2 commits into
base: 0.9
Choose a base branch
from

Commits on May 31, 2019

  1. Added method QueryBuilder().remove_where(column)

    Sometimes we need to dynamically remove a where clause referencing a particular column
    and somtimes, only when the clause involves a particular operator.
    
    Can be used as
    
    Remove all clasues referencing column_a
    ```python3
    query.remove_where('column_a')
    ```
    
    Remove all clasues referencing column_a with operator `!=`
    ```python3
    query.remove_where('column_a', '!=')
    ```
    
    Store the bindings for each `where` on the where dict within self.wheres
    so that we can easily remove the clause and it's bindings.
    ar45 committed May 31, 2019
    Configuration menu
    Copy the full SHA
    80d7788 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2019

  1. Configuration menu
    Copy the full SHA
    cf33046 View commit details
    Browse the repository at this point in the history