apexdevkit 1.18.9__tar.gz → 1.18.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/PKG-INFO +2 -2
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/query/query.py +23 -23
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/connector.py +15 -11
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/pyproject.toml +1 -1
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/LICENSE +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/README.md +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/environment.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/error.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/name.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/request.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/resource.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/router.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/service.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fluent.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/formatter.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/httpx.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/id.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/key_fn.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/query/__init__.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/query/generator.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/base.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/database.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/decorator.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/in_memory.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/interface.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/mongo.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/mssql.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/sql.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/sqlite.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/server.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/synchronization.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/testing/fake.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/testing/rest.py +0 -0
- {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/value.py +0 -0
|
@@ -141,29 +141,29 @@ class Filter:
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
class Operation(Enum):
|
|
144
|
-
BETWEEN
|
|
145
|
-
RANGE
|
|
146
|
-
NULL
|
|
147
|
-
BLANK
|
|
148
|
-
IN
|
|
149
|
-
CONTAINS
|
|
150
|
-
LIKE
|
|
151
|
-
BEGINS
|
|
152
|
-
ENDS
|
|
153
|
-
EQUALS
|
|
154
|
-
NOT_EQUALS
|
|
155
|
-
GREATER
|
|
156
|
-
GREATER_OR_EQUALS
|
|
157
|
-
LESS
|
|
158
|
-
LESS_OR_EQUALS
|
|
159
|
-
AND
|
|
160
|
-
OR
|
|
161
|
-
NOT
|
|
144
|
+
BETWEEN = "BETWEEN"
|
|
145
|
+
RANGE = "RANGE"
|
|
146
|
+
NULL = "NULL"
|
|
147
|
+
BLANK = "BLANK"
|
|
148
|
+
IN = "IN"
|
|
149
|
+
CONTAINS = "CONTAINS"
|
|
150
|
+
LIKE = "LIKE"
|
|
151
|
+
BEGINS = "BEGINS"
|
|
152
|
+
ENDS = "ENDS"
|
|
153
|
+
EQUALS = "="
|
|
154
|
+
NOT_EQUALS = "<>"
|
|
155
|
+
GREATER = ">"
|
|
156
|
+
GREATER_OR_EQUALS = ">="
|
|
157
|
+
LESS = "<"
|
|
158
|
+
LESS_OR_EQUALS = "<="
|
|
159
|
+
AND = "AND"
|
|
160
|
+
OR = "OR"
|
|
161
|
+
NOT = "NOT"
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
class Aggregation(Enum):
|
|
165
|
-
COUNT
|
|
166
|
-
MAX
|
|
167
|
-
MIN
|
|
168
|
-
SUM
|
|
169
|
-
AVG
|
|
165
|
+
COUNT = "COUNT"
|
|
166
|
+
MAX = "MAX"
|
|
167
|
+
MIN = "MIN"
|
|
168
|
+
SUM = "SUM"
|
|
169
|
+
AVG = "AVG"
|
|
@@ -55,22 +55,26 @@ class MsSqlConnector:
|
|
|
55
55
|
db_password: str
|
|
56
56
|
db_name: str
|
|
57
57
|
db_tds_version = "7.0"
|
|
58
|
+
db_port: str | None = None
|
|
58
59
|
|
|
59
60
|
def connect(self) -> ContextManager[Connection]:
|
|
60
61
|
return ConnectionContextManager(self._connection())
|
|
61
62
|
|
|
62
63
|
def _connection(self) -> Connection:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
connection_params = {
|
|
65
|
+
"tds_version": self.db_tds_version,
|
|
66
|
+
"server": self.db_host,
|
|
67
|
+
"user": self.db_user,
|
|
68
|
+
"password": self.db_password,
|
|
69
|
+
"database": self.db_name,
|
|
70
|
+
"as_dict": True,
|
|
71
|
+
"autocommit": True,
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if self.db_port is not None:
|
|
75
|
+
connection_params["port"] = self.db_port
|
|
76
|
+
|
|
77
|
+
return MsSqlConnectionAdapter(pymssql.connect(**connection_params))
|
|
74
78
|
|
|
75
79
|
|
|
76
80
|
class ConnectionContextManager(AbstractContextManager[Connection]):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|