thds.tabularasa 0.14.2__py3-none-any.whl → 0.14.3__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.
- thds/tabularasa/loaders/sqlite_util.py +3 -2
- {thds_tabularasa-0.14.2.dist-info → thds_tabularasa-0.14.3.dist-info}/METADATA +1 -1
- {thds_tabularasa-0.14.2.dist-info → thds_tabularasa-0.14.3.dist-info}/RECORD +6 -6
- {thds_tabularasa-0.14.2.dist-info → thds_tabularasa-0.14.3.dist-info}/WHEEL +0 -0
- {thds_tabularasa-0.14.2.dist-info → thds_tabularasa-0.14.3.dist-info}/entry_points.txt +0 -0
- {thds_tabularasa-0.14.2.dist-info → thds_tabularasa-0.14.3.dist-info}/top_level.txt +0 -0
|
@@ -184,6 +184,7 @@ def bulk_write_connection(
|
|
|
184
184
|
db_path_ = to_local_path(db_path, db_package).absolute()
|
|
185
185
|
lock_path = db_path_.with_suffix(".lock")
|
|
186
186
|
lock = FileLock(lock_path)
|
|
187
|
+
lock_path.parent.mkdir(parents=True, exist_ok=True)
|
|
187
188
|
logger = logging.getLogger(__name__)
|
|
188
189
|
logger.info("PID %d: Acquiring lock on %s", os.getpid(), lock_path)
|
|
189
190
|
with lock:
|
|
@@ -207,7 +208,7 @@ def sqlite_connection(
|
|
|
207
208
|
*,
|
|
208
209
|
mmap_size: Optional[int] = None,
|
|
209
210
|
read_only: bool = False,
|
|
210
|
-
):
|
|
211
|
+
) -> sqlite3.Connection:
|
|
211
212
|
db_full_path = to_local_path(db_path, package)
|
|
212
213
|
|
|
213
214
|
logger = logging.getLogger(__name__)
|
|
@@ -225,7 +226,7 @@ def sqlite_connection(
|
|
|
225
226
|
|
|
226
227
|
def _log_exec_sql(
|
|
227
228
|
logger: logging.Logger, con: sqlite3.Connection, statement: str, level: int = logging.DEBUG
|
|
228
|
-
):
|
|
229
|
+
) -> None:
|
|
229
230
|
logger.log(level, "sqlite: %s", statement)
|
|
230
231
|
con.execute(statement)
|
|
231
232
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: thds.tabularasa
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.3
|
|
4
4
|
Summary: Trilliant Health reference data build system.
|
|
5
5
|
Author-email: Trilliant Health <info@trillianthealth.com>
|
|
6
6
|
Project-URL: Repository, https://github.com/TrilliantHealth/ds-monorepo
|
|
@@ -19,7 +19,7 @@ thds/tabularasa/diff/summary.py,sha256=gENtDwhSrDYeN-8fWr6Ug2zgdp584b0pZF9UBYzKF
|
|
|
19
19
|
thds/tabularasa/loaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
thds/tabularasa/loaders/lazy_adls.py,sha256=jrWy5tTKDQfWEv6aHQ3UJhFzLrDPOlSGsArv9zcl1g8,1375
|
|
21
21
|
thds/tabularasa/loaders/parquet_util.py,sha256=u75j3PkMSakO2zfq4zksWzXLYnaO--WizAgXTcSpXRY,13354
|
|
22
|
-
thds/tabularasa/loaders/sqlite_util.py,sha256=
|
|
22
|
+
thds/tabularasa/loaders/sqlite_util.py,sha256=etLiV0h1l7NQHaEdNjz0QtqYaRBSm5L6EVWOwnCRv2w,11185
|
|
23
23
|
thds/tabularasa/loaders/util.py,sha256=XmsGkDdL6O8R6B4667Iqi5HoRgq0YMs6LP3VvPIqPVU,21369
|
|
24
24
|
thds/tabularasa/schema/__init__.py,sha256=bowvNXrrDrWB3TAmwDxCeEAvVEe9z7iRfqRaNg1Qmo4,440
|
|
25
25
|
thds/tabularasa/schema/constraints.py,sha256=V2vh01BhYR8OVQvgdujqSi0l_fMJvFKYSlBvWExZFG0,9744
|
|
@@ -41,8 +41,8 @@ thds/tabularasa/schema/compilation/sqlite.py,sha256=wSrSlVCYeuTpOf9AOHAnp6gJHkjH
|
|
|
41
41
|
thds/tabularasa/schema/compilation/util.py,sha256=YXFe1_yoBobED010hstKIoq-dwLHo6SBv1v1IAw6AYU,3886
|
|
42
42
|
thds/tabularasa/testing/__init__.py,sha256=XoLzB-DotxFw9KHt2vfH72k7pyAAFI2bW-qqq6nww1g,85
|
|
43
43
|
thds/tabularasa/testing/mock_sqlite.py,sha256=xoV4w_GaDgtZf17iUux2-LA6Va1XRJdC2FU34dysh0o,4769
|
|
44
|
-
thds_tabularasa-0.14.
|
|
45
|
-
thds_tabularasa-0.14.
|
|
46
|
-
thds_tabularasa-0.14.
|
|
47
|
-
thds_tabularasa-0.14.
|
|
48
|
-
thds_tabularasa-0.14.
|
|
44
|
+
thds_tabularasa-0.14.3.dist-info/METADATA,sha256=WfrgVRGa1Te2GYA4qFHRogd9-H8ZPJRsTNVOwhKbL1Q,26786
|
|
45
|
+
thds_tabularasa-0.14.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
46
|
+
thds_tabularasa-0.14.3.dist-info/entry_points.txt,sha256=PX4ShRonjv6lMsVjrGu8RkFzpyyvgM9EnZlNfMomd9k,61
|
|
47
|
+
thds_tabularasa-0.14.3.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
|
|
48
|
+
thds_tabularasa-0.14.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|