ic-python-db 0.7.4__tar.gz → 0.7.5__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.
- {ic_python_db-0.7.4/ic_python_db.egg-info → ic_python_db-0.7.5}/PKG-INFO +1 -1
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/__init__.py +1 -1
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/entity.py +6 -1
- {ic_python_db-0.7.4 → ic_python_db-0.7.5/ic_python_db.egg-info}/PKG-INFO +1 -1
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/pyproject.toml +1 -1
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/setup.py +1 -1
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/LICENSE +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/MANIFEST.in +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/README.md +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/_cdk.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/constants.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/context.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/db_engine.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/hooks.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/mixins.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/properties.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/py.typed +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/storage.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db/system_time.py +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db.egg-info/SOURCES.txt +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db.egg-info/dependency_links.txt +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/ic_python_db.egg-info/top_level.txt +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/requirements-dev.txt +0 -0
- {ic_python_db-0.7.4 → ic_python_db-0.7.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ic_python_db
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.5
|
|
4
4
|
Summary: A lightweight key-value database written in Python, intended for use on the Internet Computer (IC)
|
|
5
5
|
Home-page: https://github.com/smart-social-contracts/ic-python-db
|
|
6
6
|
Author: Smart Social Contracts
|
|
@@ -180,7 +180,8 @@ class Entity:
|
|
|
180
180
|
setattr(self, k, v)
|
|
181
181
|
self._do_not_save = False
|
|
182
182
|
|
|
183
|
-
self.
|
|
183
|
+
if not self._loaded:
|
|
184
|
+
self._save()
|
|
184
185
|
|
|
185
186
|
@classmethod
|
|
186
187
|
def new(cls, **kwargs):
|
|
@@ -386,6 +387,10 @@ class Entity:
|
|
|
386
387
|
# Create instance first
|
|
387
388
|
entity = cls(**data, _loaded=True)
|
|
388
389
|
|
|
390
|
+
# If migration was applied, persist the migrated data
|
|
391
|
+
if stored_version != current_version:
|
|
392
|
+
entity._save()
|
|
393
|
+
|
|
389
394
|
# Restore legacy "relations" block if present in serialized data.
|
|
390
395
|
# Otherwise keep the _relations that __init__ already populated
|
|
391
396
|
# via relationship descriptors (OneToMany, ManyToOne, etc.).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ic_python_db
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.5
|
|
4
4
|
Summary: A lightweight key-value database written in Python, intended for use on the Internet Computer (IC)
|
|
5
5
|
Home-page: https://github.com/smart-social-contracts/ic-python-db
|
|
6
6
|
Author: Smart Social Contracts
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ic_python_db"
|
|
7
|
-
version = "0.7.
|
|
7
|
+
version = "0.7.5"
|
|
8
8
|
description = "A lightweight key-value database written in Python, intended for use on the Internet Computer (IC)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="ic_python_db",
|
|
8
|
-
version="0.7.
|
|
8
|
+
version="0.7.5",
|
|
9
9
|
author="Smart Social Contracts",
|
|
10
10
|
author_email="smartsocialcontracts@gmail.com",
|
|
11
11
|
description="A lightweight key-value database with entity relationships and audit logging",
|
|
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
|
|
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
|