-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathtypes.py
58 lines (48 loc) · 986 Bytes
/
types.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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"