produce a wrapping element for a case-insensitive portion of an ILIKE construct. The construct usually renders the ``lower()`` function, but on PostgreSQL will pass silently with the assumption that "ILIKE" is being used. .. versionadded:: 2.0
| 1026 | |
| 1027 | |
| 1028 | class ilike_case_insensitive( |
| 1029 | roles.BinaryElementRole[Any], elements.CompilerColumnElement |
| 1030 | ): |
| 1031 | """produce a wrapping element for a case-insensitive portion of |
| 1032 | an ILIKE construct. |
| 1033 | |
| 1034 | The construct usually renders the ``lower()`` function, but on |
| 1035 | PostgreSQL will pass silently with the assumption that "ILIKE" |
| 1036 | is being used. |
| 1037 | |
| 1038 | .. versionadded:: 2.0 |
| 1039 | |
| 1040 | """ |
| 1041 | |
| 1042 | __visit_name__ = "ilike_case_insensitive_operand" |
| 1043 | __slots__ = "element", "comparator" |
| 1044 | |
| 1045 | def __init__(self, element): |
| 1046 | self.element = element |
| 1047 | self.comparator = element.comparator |
| 1048 | |
| 1049 | @property |
| 1050 | def proxy_set(self): |
| 1051 | return self.element.proxy_set |
| 1052 | |
| 1053 | @property |
| 1054 | def type(self): |
| 1055 | return self.element.type |
| 1056 | |
| 1057 | def self_group(self, **kw): |
| 1058 | return self |
| 1059 | |
| 1060 | def _with_binary_element_type(self, type_): |
| 1061 | return ilike_case_insensitive( |
| 1062 | self.element._with_binary_element_type(type_) |
| 1063 | ) |
| 1064 | |
| 1065 | |
| 1066 | class SQLCompiler(Compiled): |
no outgoing calls
no test coverage detected