Where#
- class dbastable.Where(column, op, value)#
Bases:
objectWhere statement generator for SQL queries.
- Parameters:
- columnstr
The column name.
- opstr
The SQL operator. Must be one of:
=, !=, >, <, >=, <=, LIKE, IN, NOT IN, IS, IS NOT, BETWEEN, NOT BETWEEN.- valueany
The value to compare with the column. If the operator is
INorNOT IN, the value must be a list of values. If the operator isBETWEENorNOT BETWEEN, the value must be a list of two values. For all other operators, the value must be a single value.
Attributes Summary
Generate a string for the where statement.
Attributes Documentation
- to_sql#
Generate a string for the where statement.