aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/postgrest/types.py
diff options
context:
space:
mode:
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"