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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsonjsdb
3
- Version: 0.7.0
3
+ Version: 0.7.2
4
4
  Summary: Python library for JSONJS database loading
5
5
  Project-URL: Homepage, https://github.com/datannur/jsonjsdb
6
6
  Project-URL: Repository, https://github.com/datannur/jsonjsdb
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "jsonjsdb"
7
- version = "0.7.0"
7
+ version = "0.7.2"
8
8
  description = "Python library for JSONJS database loading"
9
9
  authors = [{ name = "datannur" }]
10
10
  readme = "README.md"
@@ -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
- if old_df.is_empty() and new_df.is_empty():
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