pytrilogy 0.0.3.11__py3-none-any.whl → 0.0.3.13__py3-none-any.whl
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.
Potentially problematic release.
This version of pytrilogy might be problematic. Click here for more details.
- {pytrilogy-0.0.3.11.dist-info → pytrilogy-0.0.3.13.dist-info}/METADATA +1 -1
- {pytrilogy-0.0.3.11.dist-info → pytrilogy-0.0.3.13.dist-info}/RECORD +8 -8
- trilogy/__init__.py +1 -1
- trilogy/engine.py +21 -1
- {pytrilogy-0.0.3.11.dist-info → pytrilogy-0.0.3.13.dist-info}/LICENSE.md +0 -0
- {pytrilogy-0.0.3.11.dist-info → pytrilogy-0.0.3.13.dist-info}/WHEEL +0 -0
- {pytrilogy-0.0.3.11.dist-info → pytrilogy-0.0.3.13.dist-info}/entry_points.txt +0 -0
- {pytrilogy-0.0.3.11.dist-info → pytrilogy-0.0.3.13.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
trilogy/__init__.py,sha256=
|
|
1
|
+
trilogy/__init__.py,sha256=SR-wyEtVKOzhvSN4YOU4HgDCemBcEehlcvApJaGTwgY,303
|
|
2
2
|
trilogy/compiler.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
trilogy/constants.py,sha256=qZ1d0hoKPPV2HHCoFwPYTVB7b6bXjpWvXd3lE-zEhy8,1494
|
|
4
|
-
trilogy/engine.py,sha256=
|
|
4
|
+
trilogy/engine.py,sha256=OK2RuqCIUId6yZ5hfF8J1nxGP0AJqHRZiafcowmW0xc,1728
|
|
5
5
|
trilogy/executor.py,sha256=CU-T7hl5hQab17KkJz9XhwlyI4-7MQL-JGdTDMVsE4E,16025
|
|
6
6
|
trilogy/parser.py,sha256=o4cfk3j3yhUFoiDKq9ZX_GjBF3dKhDjXEwb63rcBkBM,293
|
|
7
7
|
trilogy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -95,9 +95,9 @@ trilogy/parsing/render.py,sha256=o_XuQWhcwx1lD9eGVqkqZEwkmQK0HdmWWokGBtdeH4I,178
|
|
|
95
95
|
trilogy/parsing/trilogy.lark,sha256=zehaPaYKuJZQ335sgCjH8Q6u_hy5A6A02XcdwziZdWE,12817
|
|
96
96
|
trilogy/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
97
97
|
trilogy/scripts/trilogy.py,sha256=1L0XrH4mVHRt1C9T1HnaDv2_kYEfbWTb5_-cBBke79w,3774
|
|
98
|
-
pytrilogy-0.0.3.
|
|
99
|
-
pytrilogy-0.0.3.
|
|
100
|
-
pytrilogy-0.0.3.
|
|
101
|
-
pytrilogy-0.0.3.
|
|
102
|
-
pytrilogy-0.0.3.
|
|
103
|
-
pytrilogy-0.0.3.
|
|
98
|
+
pytrilogy-0.0.3.13.dist-info/LICENSE.md,sha256=5ZRvtTyCCFwz1THxDTjAu3Lidds9WjPvvzgVwPSYNDo,1042
|
|
99
|
+
pytrilogy-0.0.3.13.dist-info/METADATA,sha256=q_plA6WEzvwBuPNnEHetbuZfKResxygfl1EffyVw1OE,8984
|
|
100
|
+
pytrilogy-0.0.3.13.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
101
|
+
pytrilogy-0.0.3.13.dist-info/entry_points.txt,sha256=0petKryjvvtEfTlbZC1AuMFumH_WQ9v8A19LvoS6G6c,54
|
|
102
|
+
pytrilogy-0.0.3.13.dist-info/top_level.txt,sha256=cAy__NW_eMAa_yT9UnUNlZLFfxcg6eimUAZ184cdNiE,8
|
|
103
|
+
pytrilogy-0.0.3.13.dist-info/RECORD,,
|
trilogy/__init__.py
CHANGED
trilogy/engine.py
CHANGED
|
@@ -18,6 +18,15 @@ class EngineConnection(Protocol):
|
|
|
18
18
|
def execute(self, statement: str, parameters: Any | None = None) -> EngineResult:
|
|
19
19
|
pass
|
|
20
20
|
|
|
21
|
+
def commit(self):
|
|
22
|
+
raise NotImplementedError()
|
|
23
|
+
|
|
24
|
+
def begin(self):
|
|
25
|
+
raise NotImplementedError()
|
|
26
|
+
|
|
27
|
+
def rollback(self):
|
|
28
|
+
raise NotImplementedError()
|
|
29
|
+
|
|
21
30
|
|
|
22
31
|
class ExecutionEngine(Protocol):
|
|
23
32
|
pass
|
|
@@ -40,13 +49,24 @@ class SqlAlchemyResult(EngineResult):
|
|
|
40
49
|
|
|
41
50
|
class SqlAlchemyConnection(EngineConnection):
|
|
42
51
|
def __init__(self, connection: Connection):
|
|
43
|
-
|
|
52
|
+
from sqlalchemy.future import Connection
|
|
53
|
+
|
|
54
|
+
self.connection: Connection = connection
|
|
44
55
|
|
|
45
56
|
def execute(
|
|
46
57
|
self, statement: str, parameters: Any | None = None
|
|
47
58
|
) -> SqlAlchemyResult:
|
|
48
59
|
return SqlAlchemyResult(self.connection.execute(statement, parameters))
|
|
49
60
|
|
|
61
|
+
def commit(self):
|
|
62
|
+
self.connection.commit()
|
|
63
|
+
|
|
64
|
+
def begin(self):
|
|
65
|
+
self.connection.begin()
|
|
66
|
+
|
|
67
|
+
def rollback(self):
|
|
68
|
+
self.connection.rollback()
|
|
69
|
+
|
|
50
70
|
|
|
51
71
|
class SqlAlchemyEngine(ExecutionEngine):
|
|
52
72
|
def __init__(self, engine: Engine):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|