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
Describe SQL method
.where_all() method accepts several conditions as kwargs and checks whether all of the conditions are True. Example: cur.select(...).where_all(condition_1=value_1, condition_2=value_2, ...)
(from the previous example onwards cur is an object of fyCursor)
.where_any() method accepts several conditions as kwargs and checks whether at least one of these conditions is True. Example:
cur.select(...).where_any(condition_1=value_1, condition_2=value_2, ...)
(Optional) Describe how you'd like to implement this method
All conditions passed to where_all() are connected with AND keyword, while where_any() connects them with OR.
Describe SQL method
.where_all() method accepts several conditions as kwargs and checks whether all of the conditions are True. Example: cur.select(...).where_all(condition_1=value_1, condition_2=value_2, ...)
(from the previous example onwards cur is an object of fyCursor)
.where_any() method accepts several conditions as kwargs and checks whether at least one of these conditions is True. Example:
cur.select(...).where_any(condition_1=value_1, condition_2=value_2, ...)
(Optional) Describe how you'd like to implement this method
All conditions passed to where_all() are connected with AND keyword, while where_any() connects them with OR.
Examples:
cur.select("name", "table").where_all(balance=100, level=2)
executes following SQL query:
"SELECT name FROM table WHERE balance = 100 AND level = 100"
The same syntax but with .where_any method executes a similar SQL query but with OR keyword.
(Optional) Additional context
As those methods accept kwargs, the following syntax is also allowed:
.where_all({"cond_1": val_1, ...})
.where_any({"cond_1": val_1, ...})
The text was updated successfully, but these errors were encountered: