-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathquery.pyi
More file actions
103 lines (56 loc) · 3.33 KB
/
Copy pathquery.pyi
File metadata and controls
103 lines (56 loc) · 3.33 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
from typing import Union, Any, SupportsFloat, Tuple
import leancloud
from leancloud.object_ import Object
from leancloud.geo_point import GeoPoint
class CQLResult(object):
def __init__(self, results: List[Object], count: SupportsFloat, class_name: str) -> None:...
class Query(object):
_skip = ... # type: int
_limit = ... # type: int
_friendship_tag = ... # type: str
def __init__(self, query_class: Union[str, Object, type]) -> None:...
@classmethod
def or_(cls, *queries: Query) -> Query:...
@classmethod
def and_(cls, *queries: Query) -> Query:...
@classmethod
def do_cloud_query(cql, *pvalues) -> CQLResult:...
def dump(self) -> Dict:...
def first(self) -> Object:...
def get(self, object_id: str) -> Object:...
def find(self) -> List[Object]:...
def count(self) -> int:...
def skip(self, n:int) -> Query:...
def limit(self,n:int) -> Query:...
def equal_to(self, key: str, value: Any) -> Query:...
def not_equal_to(self, key: str, value: Any) -> Query:...
def less_than(self, key: str, value: Any) -> Query:...
def greater_than(self, key: str, value: Any) -> Query:...
def less_than_or_equal_to(self, key: str, value: Any) -> Query:...
def greater_than_or_equal_to(self, key: str, value: Any) -> Query:...
def contained_in(self, key: str, values: Union[List[Any],Tuple[Any]]) -> Query:...
def not_contained_in(self, key: str, values: Union[List[Any],Tuple[Any]]) -> Query:...
def contains_all(self, key: str, values: Union[List[Any],Tuple[Any]]) -> Query:...
def exists(self, key: str) -> Query:...
def does_not_exist(self, key: str) -> Query:...
def does_not_exists(self, key:str) -> Query:...
def matched(self, key: str, regex: str, ignore_case: bool=False, multi_line: bool=False) -> Query:...
def matches_query(self, key: str, value: Any) -> Query:...
def does_not_match_query(self, key: str, value: Any) -> Query:...
def matched_key_in_query(self, key: str, query_key: str, query: Query) -> Query:...
def matches_key_in_query(self, key: str, query_key: str, query: Query) -> Query:...
def does_not_match_key_in_query(self, key: str, query_key: str, query: Query) -> Query:...
def contains(self, key: str, value: Any) -> Query:...
def startswith(self, key: str, value: Any) -> Query:...
def endswith(self, key: str, value: Any) -> Query:...
def ascending(self, key: str) -> Query:...
def add_ascending(self, key: str) -> Query:...
def descending(self, key: str) -> Query:...
def add_descending(self, key: str) -> Query:...
def near(self, key: str, point: GeoPoint) -> Query:...
def within_radians(self, key: str, point: GeoPoint, max_distance: SupportsFloat, min_distance: SupportsFloat=None) -> Query:...
def within_miles(self, key: str, point: GeoPoint, max_distance: SupportsFloat, min_distance: SupportsFloat=None) -> Query:...
def within_kilometers(self, key: str, point: GeoPoint, max_distance: SupportsFloat, min_distance: SupportsFloat=None) -> Query:...
def within_geo_box(self, key: str, southwest:Tuple[SupportsFloat, SupportsFloat], northeast: Tuple[SupportsFloat, SupportsFloat]) -> Query:...
def include(self, *keys: Union[List[str], Tuple[str]]) -> Query:...
def select(self, *keys: Union[List[str], Tuple[str]]) -> Query:...