apexdevkit 1.27.3__tar.gz → 1.28.2__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.27.3 → apexdevkit-1.28.2}/PKG-INFO +2 -2
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/connector.py +14 -19
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/pyproject.toml +2 -2
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/LICENSE +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/README.md +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/date.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/environment.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/error.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/name.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/resource.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/router.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fastapi/service.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/fluent.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/formatter.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/http/httpx/__init__.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/http/httpx/client.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/http/httpx/hooks.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/id.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/key_fn.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/query/__init__.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/query/generator.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/query/query.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/base.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/database.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/decorator.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/in_memory.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/interface.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/mssql.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/repository.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/sql.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/repository/sqlite.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/server.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/synchronization.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/testing/fake.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/testing/rest.py +0 -0
- {apexdevkit-1.27.3 → apexdevkit-1.28.2}/apexdevkit/value.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apexdevkit
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.28.2
|
|
4
4
|
Summary: Apex Development Tools for python.
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Apex Dev
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.14
|
|
14
14
|
Requires-Dist: fastapi
|
|
15
15
|
Requires-Dist: httpx
|
|
16
|
-
Requires-Dist: pymssql (==2
|
|
16
|
+
Requires-Dist: pymssql (==2.*)
|
|
17
17
|
Requires-Dist: python-dotenv
|
|
18
18
|
Requires-Dist: sentry-sdk[fastapi]
|
|
19
19
|
Requires-Dist: tomlkit
|
|
@@ -7,8 +7,6 @@ from functools import cached_property
|
|
|
7
7
|
from typing import Any
|
|
8
8
|
|
|
9
9
|
import pymssql
|
|
10
|
-
from pymssql import Connection as _Connection
|
|
11
|
-
from pymssql import Cursor
|
|
12
10
|
|
|
13
11
|
from apexdevkit.repository import Connection
|
|
14
12
|
|
|
@@ -46,26 +44,23 @@ class MsSqlConnector:
|
|
|
46
44
|
db_password: str
|
|
47
45
|
db_name: str
|
|
48
46
|
db_tds_version = "7.0"
|
|
49
|
-
db_port: str
|
|
47
|
+
db_port: str = "1433"
|
|
50
48
|
|
|
51
49
|
def connect(self) -> AbstractContextManager[Connection]:
|
|
52
50
|
return ConnectionContextManager(self._connection())
|
|
53
51
|
|
|
54
52
|
def _connection(self) -> Connection:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
connection_params["port"] = self.db_port
|
|
67
|
-
|
|
68
|
-
return MsSqlConnectionAdapter(pymssql.connect(**connection_params))
|
|
53
|
+
return MsSqlConnectionAdapter(
|
|
54
|
+
pymssql.connect(
|
|
55
|
+
server=self.db_host,
|
|
56
|
+
user=self.db_user,
|
|
57
|
+
password=self.db_password,
|
|
58
|
+
database=self.db_name,
|
|
59
|
+
tds_version=self.db_tds_version,
|
|
60
|
+
as_dict=True,
|
|
61
|
+
autocommit=True,
|
|
62
|
+
)
|
|
63
|
+
)
|
|
69
64
|
|
|
70
65
|
|
|
71
66
|
class ConnectionContextManager(AbstractContextManager[Connection]):
|
|
@@ -82,7 +77,7 @@ class ConnectionContextManager(AbstractContextManager[Connection]):
|
|
|
82
77
|
|
|
83
78
|
@dataclass
|
|
84
79
|
class MsSqlConnectionAdapter:
|
|
85
|
-
connection:
|
|
80
|
+
connection: pymssql.Connection[pymssql.DictRow]
|
|
86
81
|
|
|
87
82
|
def cursor(self) -> MsSqlCursorAdapter:
|
|
88
83
|
return MsSqlCursorAdapter(self.connection.cursor())
|
|
@@ -93,7 +88,7 @@ class MsSqlConnectionAdapter:
|
|
|
93
88
|
|
|
94
89
|
@dataclass
|
|
95
90
|
class MsSqlCursorAdapter:
|
|
96
|
-
cursor: Cursor
|
|
91
|
+
cursor: pymssql.Cursor[pymssql.DictRow]
|
|
97
92
|
|
|
98
93
|
def execute(self, *args: Any, **kwargs: Any) -> Any:
|
|
99
94
|
self.cursor.execute(*args, **kwargs)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "apexdevkit"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.28.2"
|
|
4
4
|
description = "Apex Development Tools for python."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -15,7 +15,7 @@ fastapi = "*"
|
|
|
15
15
|
uvicorn = "*"
|
|
16
16
|
sentry-sdk = { extras = ["fastapi"], version = "*" }
|
|
17
17
|
python-dotenv = "*"
|
|
18
|
-
pymssql = "2
|
|
18
|
+
pymssql = "2.*"
|
|
19
19
|
typer = "*"
|
|
20
20
|
tomlkit = "*"
|
|
21
21
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|