jsonjsdb 0.7.0__tar.gz → 0.7.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.
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/PKG-INFO +1 -1
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/pyproject.toml +1 -1
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/src/jsonjsdb/database.py +5 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/src/jsonjsdb/evolution.py +4 -1
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/.gitignore +0 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/LICENSE +0 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/README.md +0 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/src/jsonjsdb/__init__.py +0 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/src/jsonjsdb/loader.py +0 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/src/jsonjsdb/py.typed +0 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/src/jsonjsdb/table.py +0 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/src/jsonjsdb/types.py +0 -0
- {jsonjsdb-0.7.0 → jsonjsdb-0.7.2}/src/jsonjsdb/writer.py +0 -0
|
@@ -19,6 +19,9 @@ from .table import Table
|
|
|
19
19
|
from .types import TableRow
|
|
20
20
|
from .writer import write_table_index, write_table_json, write_table_jsonjs
|
|
21
21
|
|
|
22
|
+
# Internal tables that should not be loaded as user data
|
|
23
|
+
INTERNAL_TABLES = {"evolution", "__table__"}
|
|
24
|
+
|
|
22
25
|
|
|
23
26
|
class Jsonjsdb:
|
|
24
27
|
"""JSONJS database with typed table access.
|
|
@@ -59,6 +62,8 @@ class Jsonjsdb:
|
|
|
59
62
|
|
|
60
63
|
for entry in table_index:
|
|
61
64
|
name = str(entry["name"])
|
|
65
|
+
if name in INTERNAL_TABLES:
|
|
66
|
+
continue
|
|
62
67
|
json_path = path / f"{name}.json"
|
|
63
68
|
|
|
64
69
|
if json_path.exists():
|
|
@@ -126,9 +126,12 @@ def compare_datasets(
|
|
|
126
126
|
if entity.startswith("__"):
|
|
127
127
|
return entries
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
# Skip tracking for initial creation (no previous data)
|
|
130
|
+
if old_df.is_empty():
|
|
130
131
|
return entries
|
|
131
132
|
|
|
133
|
+
# Normalize IDs for consistent comparison
|
|
134
|
+
|
|
132
135
|
# Normalize id columns to string for consistent comparison
|
|
133
136
|
old_df = _normalize_id_column(old_df)
|
|
134
137
|
new_df = _normalize_id_column(new_df)
|
|
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
|