@@ -321,6 +321,46 @@ def like(self: Self, column: str, pattern: str) -> Self:
321321 """
322322 return self .filter (column , Filters .LIKE , pattern )
323323
324+ def like_all_of (self : Self , column : str , pattern : str ) -> Self :
325+ """A 'LIKE' filter, to use for pattern matching.
326+
327+ Args:
328+ column: The name of the column to apply a filter on
329+ pattern: The pattern to filter by
330+ """
331+
332+ return self .filter (column , Filters .LIKE_ALL , f"{{{ pattern } }}" )
333+
334+ def like_any_of (self : Self , column : str , pattern : str ) -> Self :
335+ """A 'LIKE' filter, to use for pattern matching.
336+
337+ Args:
338+ column: The name of the column to apply a filter on
339+ pattern: The pattern to filter by
340+ """
341+
342+ return self .filter (column , Filters .LIKE_ANY , f"{{{ pattern } }}" )
343+
344+ def ilike_all_of (self : Self , column : str , pattern : str ) -> Self :
345+ """A 'ILIKE' filter, to use for pattern matching (case insensitive).
346+
347+ Args:
348+ column: The name of the column to apply a filter on
349+ pattern: The pattern to filter by
350+ """
351+
352+ return self .filter (column , Filters .ILIKE_ALL , f"{{{ pattern } }}" )
353+
354+ def ilike_any_of (self : Self , column : str , pattern : str ) -> Self :
355+ """A 'ILIKE' filter, to use for pattern matching (case insensitive).
356+
357+ Args:
358+ column: The name of the column to apply a filter on
359+ pattern: The pattern to filter by
360+ """
361+
362+ return self .filter (column , Filters .ILIKE_ANY , f"{{{ pattern } }}" )
363+
324364 def ilike (self : Self , column : str , pattern : str ) -> Self :
325365 """An 'ILIKE' filter, to use for pattern matching (case insensitive).
326366
0 commit comments