apexdevkit 2.0.2__tar.gz → 2.1.1__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-2.0.2 → apexdevkit-2.1.1}/PKG-INFO +2 -1
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/sql/connector.py +2 -18
- apexdevkit-2.1.1/apexdevkit/repository/sql/sqlite/__init__.py +8 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/pyproject.toml +2 -2
- apexdevkit-2.0.2/apexdevkit/repository/sql/sqlite/__init__.py +0 -7
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/LICENSE +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/README.md +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/date.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/error.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/name.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/resource.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/router.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/fastapi/service.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/formatter.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/key_fn.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/py.typed +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/query/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/query/generator.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/query/query.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/core/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/core/database.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/core/decorator.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/core/interface.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/core/mixin.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/in_memory/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/in_memory/mixin.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/in_memory/repository.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/in_memory/store.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/sql/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/sql/field.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/sql/mssql/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/sql/mssql/repository.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/sql/mssql/table.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/sql/sqlite/repository.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/repository/sql/sqlite/table.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/server.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/sync/__init__.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/sync/observer.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/sync/source.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/sync/sync.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/sync/target.py +0 -0
- {apexdevkit-2.0.2 → apexdevkit-2.1.1}/apexdevkit/testing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apexdevkit
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: Apex Development Tools for python.
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Apex Dev
|
|
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.13
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
13
14
|
Requires-Dist: fastapi
|
|
14
15
|
Requires-Dist: pydantic
|
|
15
16
|
Requires-Dist: pymssql (==2.*)
|
|
@@ -3,7 +3,6 @@ from __future__ import annotations
|
|
|
3
3
|
import sqlite3
|
|
4
4
|
from contextlib import AbstractContextManager
|
|
5
5
|
from dataclasses import dataclass
|
|
6
|
-
from functools import cached_property
|
|
7
6
|
from typing import Any
|
|
8
7
|
|
|
9
8
|
import pymssql
|
|
@@ -18,25 +17,10 @@ class SqliteFileConnector:
|
|
|
18
17
|
dsn: str = Environment().inject(variable="DSN")
|
|
19
18
|
|
|
20
19
|
def connect(self) -> AbstractContextManager[Connection]:
|
|
21
|
-
connection = sqlite3.connect(self.dsn)
|
|
20
|
+
connection = sqlite3.connect(self.dsn, autocommit=True)
|
|
22
21
|
connection.row_factory = sqlite3.Row
|
|
23
22
|
|
|
24
|
-
return connection
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
@dataclass(frozen=True)
|
|
28
|
-
class SqliteInMemoryConnector:
|
|
29
|
-
dsn: str = ":memory:"
|
|
30
|
-
|
|
31
|
-
def connect(self) -> AbstractContextManager[Connection]:
|
|
32
|
-
return self._connection
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def _connection(self) -> AbstractContextManager[Connection]:
|
|
36
|
-
connection = sqlite3.connect(self.dsn, check_same_thread=False)
|
|
37
|
-
connection.row_factory = sqlite3.Row
|
|
38
|
-
|
|
39
|
-
return connection
|
|
23
|
+
return ConnectionContextManager(connection)
|
|
40
24
|
|
|
41
25
|
|
|
42
26
|
@dataclass(frozen=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "apexdevkit"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.1.1"
|
|
4
4
|
description = "Apex Development Tools for python."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -79,5 +79,5 @@ show_missing = true
|
|
|
79
79
|
|
|
80
80
|
[tool.pytest]
|
|
81
81
|
env = [
|
|
82
|
-
"ECHO_SERVER=http://localhost:8080"
|
|
82
|
+
"ECHO_SERVER=http://localhost:8080",
|
|
83
83
|
]
|
|
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
|