cloe-nessy 0.3.11.3b0__py3-none-any.whl → 0.3.11.4b0__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.
- cloe_nessy/models/table.py +0 -14
- {cloe_nessy-0.3.11.3b0.dist-info → cloe_nessy-0.3.11.4b0.dist-info}/METADATA +1 -1
- {cloe_nessy-0.3.11.3b0.dist-info → cloe_nessy-0.3.11.4b0.dist-info}/RECORD +5 -5
- {cloe_nessy-0.3.11.3b0.dist-info → cloe_nessy-0.3.11.4b0.dist-info}/WHEEL +0 -0
- {cloe_nessy-0.3.11.3b0.dist-info → cloe_nessy-0.3.11.4b0.dist-info}/top_level.txt +0 -0
cloe_nessy/models/table.py
CHANGED
|
@@ -260,20 +260,6 @@ class Table(TemplateLoaderMixin, ReadInstancesMixin, LoggerMixin):
|
|
|
260
260
|
template_name = "create_table.sql.j2"
|
|
261
261
|
template = None
|
|
262
262
|
|
|
263
|
-
# Approach 1: Try importlib.resources (recommended for Python 3.9+)
|
|
264
|
-
if files is not None:
|
|
265
|
-
try:
|
|
266
|
-
template_files = files("cloe_nessy.models") / "templates"
|
|
267
|
-
template_content = (template_files / template_name).read_text()
|
|
268
|
-
|
|
269
|
-
from jinja2 import BaseLoader, Environment
|
|
270
|
-
|
|
271
|
-
env = Environment(loader=BaseLoader(), keep_trailing_newline=True)
|
|
272
|
-
template = env.from_string(template_content)
|
|
273
|
-
|
|
274
|
-
except (FileNotFoundError, AttributeError, ImportError):
|
|
275
|
-
pass # Try next approach
|
|
276
|
-
|
|
277
263
|
# Approach 2: Try relative to __file__ (development/editable install)
|
|
278
264
|
if template is None:
|
|
279
265
|
try:
|
|
@@ -42,7 +42,7 @@ cloe_nessy/models/column.py,sha256=53fBwRnino72XKACsHZpN9QfCBqqSXyKLHZlM0huumg,1
|
|
|
42
42
|
cloe_nessy/models/constraint.py,sha256=hsFlhn4n928z81O3dl3v5bMetewPWzMjkJK3_4kASSM,178
|
|
43
43
|
cloe_nessy/models/foreign_key.py,sha256=DwRVHs9sShqqPV-NL7ow_3AmPPWX0Od26yZn_I565pU,1001
|
|
44
44
|
cloe_nessy/models/schema.py,sha256=yUrjjEhAH5zbCymE67Az_jPnVB8hGO-_UNfqzeZCD_Y,3376
|
|
45
|
-
cloe_nessy/models/table.py,sha256=
|
|
45
|
+
cloe_nessy/models/table.py,sha256=0ScwOLx9bgazMt1202KVjWzCNHqwN4rFcvSQH6ylWOQ,12667
|
|
46
46
|
cloe_nessy/models/types.py,sha256=XRbuJGdTNa6aXyE3IAzs_J9gVjbfkzMDLfGl-k6jI_4,223
|
|
47
47
|
cloe_nessy/models/volume.py,sha256=z149VCKIVNkkMv6biOLd_iPdkJnAfWdsLFBhMyCjdCI,3625
|
|
48
48
|
cloe_nessy/models/adapter/__init__.py,sha256=m36W_mqwB3dCYnCIt0fLOSHS4E1VU8FRGoaum4Gf95o,90
|
|
@@ -94,7 +94,7 @@ cloe_nessy/settings/__init__.py,sha256=ZbkneO3WaKOxon7qHFHnou7EnBOSnBFyKMDZblIEv
|
|
|
94
94
|
cloe_nessy/settings/settings.py,sha256=I4n129lrujriW-d8q4as2Kb4_kI932ModfZ5Ow_UpVM,3653
|
|
95
95
|
cloe_nessy/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
96
96
|
cloe_nessy/utils/file_and_directory_handler.py,sha256=r2EVt9xG81p6ScaJCwETC5an6pMT6WseB0jMOR-JlpU,602
|
|
97
|
-
cloe_nessy-0.3.11.
|
|
98
|
-
cloe_nessy-0.3.11.
|
|
99
|
-
cloe_nessy-0.3.11.
|
|
100
|
-
cloe_nessy-0.3.11.
|
|
97
|
+
cloe_nessy-0.3.11.4b0.dist-info/METADATA,sha256=yH9EXGt_vkLlDWuTlBv73CCXrhvIXReJGf-84kkyxrg,3166
|
|
98
|
+
cloe_nessy-0.3.11.4b0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
99
|
+
cloe_nessy-0.3.11.4b0.dist-info/top_level.txt,sha256=Z7izn8HmQpg2wBUb-0jzaKlYKMU7Ypzuc9__9vPtW_I,11
|
|
100
|
+
cloe_nessy-0.3.11.4b0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|