orator
orator copied to clipboard
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
query.remove_where('column_a')
Remove all clasues referencing column_a with operator !=
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.