app.utils.request_query_operator.Helper.build_string_clause
- Helper.build_string_clause(field: peewee.Field, field_operator: str, field_value) tuple
Build string clauses.
You can find next string operators: +————+—————————————–+ | Name | Description | +============+=========================================+ | eq | x equals y | +————+—————————————–+ | ne | x is not equal to y | +————+—————————————–+ | contains | Wild-card search for substring | +————+—————————————–+ | ncontains | Wild-card not search for substring | +————+—————————————–+ | startswith | Search for values beginning with prefix | +————+—————————————–+ | endswith | Search for values ending with suffix | +————+—————————————–+
Example
TODO: Pending to define