half-orm 0.18.1__tar.gz → 0.18.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.
- {half_orm-0.18.1/half_orm.egg-info → half_orm-0.18.2}/PKG-INFO +1 -1
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/null.py +5 -3
- half_orm-0.18.2/half_orm/version.txt +1 -0
- {half_orm-0.18.1 → half_orm-0.18.2/half_orm.egg-info}/PKG-INFO +1 -1
- half_orm-0.18.1/half_orm/version.txt +0 -1
- {half_orm-0.18.1 → half_orm-0.18.2}/AUTHORS +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/LICENSE +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/README.md +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/__init__.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/__main__.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/cli.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/cli_utils.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/field.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/field_errors.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/fkey.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/hotest.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/model.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/model_errors.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/pg_meta.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/relation.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/relation_errors.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/relation_factory.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/sql_adapter.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/sql_ast.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/transaction.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm/utils.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm.egg-info/SOURCES.txt +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm.egg-info/dependency_links.txt +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm.egg-info/entry_points.txt +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm.egg-info/requires.txt +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/half_orm.egg-info/top_level.txt +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/pyproject.toml +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/setup.cfg +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/setup.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/test/test_cli.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/test/test_main.py +0 -0
- {half_orm-0.18.1 → half_orm-0.18.2}/test/test_sql_ast.py +0 -0
|
@@ -34,11 +34,13 @@ class FieldDumper(Dumper):
|
|
|
34
34
|
def upgrade(self, obj, format):
|
|
35
35
|
v = obj.value
|
|
36
36
|
if isinstance(v, Null) or v is None:
|
|
37
|
-
return NullDumper(type(obj), self.
|
|
37
|
+
return NullDumper(type(obj), self.connection)
|
|
38
38
|
return self
|
|
39
39
|
|
|
40
40
|
def dump(self, obj):
|
|
41
41
|
v = obj.value
|
|
42
42
|
if isinstance(v, Null) or v is None:
|
|
43
|
-
return
|
|
44
|
-
|
|
43
|
+
return None
|
|
44
|
+
from psycopg.adapt import Transformer, PyFormat
|
|
45
|
+
tx = Transformer(self.connection)
|
|
46
|
+
return tx.get_dumper(v, PyFormat.AUTO).dump(v)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.18.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.18.1
|
|
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
|
|
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
|