MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / Oper

Class Oper

src/core/db/repository.py:19–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19class Oper(Enum):
20 EQ = "eq"
21 NE = "ne"
22 GT = "gt"
23 LT = "lt"
24 GTE = "gte"
25 LTE = "lte"
26 LIKE = "like"
27 ILIKE = "ilike"
28 IN = "in"
29 NOT_IN = "not_in"
30 BETWEEN = "between"
31 IS_NULL = "is_null"
32 IS_NOT_NULL = "is_not_null"
33 CONTAINS = "contains"
34 STARTSWITH = "startswith"
35 ENDSWITH = "endswith"
36 # JSON operators
37 JSON_EXTRACT = "json_extract" # Extract value by path: field->'$.path'
38 JSON_EXTRACT_TEXT = "json_extract_text" # Extract text value: field->>'$.path'
39 JSON_CONTAINS = "json_contains" # Check if JSON contains value
40 JSON_CONTAINS_PATH = "json_contains_path" # Check if path exists
41 JSON_ARRAY_CONTAINS = "json_array_contains" # Check if array contains value
42 JSON_LENGTH = "json_length" # Get length of JSON array/object
43
44
45@dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected