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
| 1083 | |
| 1084 | |
| 1085 | class ilike_case_insensitive( |
| 1086 | roles.BinaryElementRole[Any], elements.CompilerColumnElement |
| 1087 | ): |
| 1088 | """produce a wrapping element for a case-insensitive portion of |
| 1089 | an ILIKE construct. |
| 1090 | |
| 1091 | The construct usually renders the ``lower()`` function, but on |
| 1092 | PostgreSQL will pass silently with the assumption that "ILIKE" |
| 1093 | is being used. |
| 1094 | |
| 1095 | .. versionadded:: 2.0 |
| 1096 | |
| 1097 | """ |
| 1098 | |
| 1099 | __visit_name__ = "ilike_case_insensitive_operand" |
| 1100 | __slots__ = "element", "comparator" |
| 1101 | |
| 1102 | def __init__(self, element): |
| 1103 | self.element = element |
| 1104 | self.comparator = element.comparator |
| 1105 | |
| 1106 | @property |
| 1107 | def proxy_set(self): |
| 1108 | return self.element.proxy_set |
| 1109 | |
| 1110 | @property |
| 1111 | def type(self): |
| 1112 | return self.element.type |
| 1113 | |
| 1114 | def self_group(self, **kw): |
| 1115 | return self |
| 1116 | |
| 1117 | def _with_binary_element_type(self, type_): |
| 1118 | return ilike_case_insensitive( |
| 1119 | self.element._with_binary_element_type(type_) |
| 1120 | ) |
| 1121 | |
| 1122 | |
| 1123 | class SQLCompiler(Compiled): |
no outgoing calls
no test coverage detected