about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/postgrest/types.py
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/postgrest/types.py
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are here HEAD master
Diffstat (limited to '.venv/lib/python3.12/site-packages/postgrest/types.py')
-rw-r--r--.venv/lib/python3.12/site-packages/postgrest/types.py58
1 files changed, 58 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/postgrest/types.py b/.venv/lib/python3.12/site-packages/postgrest/types.py
new file mode 100644
index 00000000..fa6f94ce
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/postgrest/types.py
@@ -0,0 +1,58 @@
+from __future__ import annotations
+
+import sys
+
+if sys.version_info >= (3, 11):
+    from enum import StrEnum
+else:
+    from strenum import StrEnum
+
+
+class CountMethod(StrEnum):
+    exact = "exact"
+    planned = "planned"
+    estimated = "estimated"
+
+
+class Filters(StrEnum):
+    NOT = "not"
+    EQ = "eq"
+    NEQ = "neq"
+    GT = "gt"
+    GTE = "gte"
+    LT = "lt"
+    LTE = "lte"
+    IS = "is"
+    LIKE = "like"
+    LIKE_ALL = "like(all)"
+    LIKE_ANY = "like(any)"
+    ILIKE = "ilike"
+    ILIKE_ALL = "ilike(all)"
+    ILIKE_ANY = "ilike(any)"
+    FTS = "fts"
+    PLFTS = "plfts"
+    PHFTS = "phfts"
+    WFTS = "wfts"
+    IN = "in"
+    CS = "cs"
+    CD = "cd"
+    OV = "ov"
+    SL = "sl"
+    SR = "sr"
+    NXL = "nxl"
+    NXR = "nxr"
+    ADJ = "adj"
+
+
+class RequestMethod(StrEnum):
+    GET = "GET"
+    POST = "POST"
+    PATCH = "PATCH"
+    PUT = "PUT"
+    DELETE = "DELETE"
+    HEAD = "HEAD"
+
+
+class ReturnMethod(StrEnum):
+    minimal = "minimal"
+    representation = "representation"