omlish 0.0.0.dev268__py3-none-any.whl → 0.0.0.dev269__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.
- omlish/__about__.py +2 -2
- omlish/dataclasses/__init__.py +7 -0
- omlish/dataclasses/impl/metaclass.py +1 -0
- omlish/dataclasses/impl/simple.py +1 -1
- omlish/formats/toml/parser.py +593 -594
- omlish/lang/classes/abstract.py +3 -0
- omlish/lang/comparison.py +3 -0
- omlish/lang/datetimes.py +3 -0
- omlish/lang/generators.py +2 -2
- omlish/lang/maybes.py +3 -0
- omlish/lang/resolving.py +3 -0
- omlish/lang/sys.py +3 -0
- omlish/marshal/objects/dataclasses.py +1 -1
- omlish/marshal/polymorphism/metadata.py +9 -3
- omlish/sql/alchemy/__init__.py +31 -0
- omlish/sql/alchemy/apiadapter.py +121 -0
- omlish/sql/api/__init__.py +39 -0
- omlish/sql/api/base.py +1 -0
- omlish/sql/parsing/parsing.py +1 -1
- omlish/sql/queries/__init__.py +4 -0
- omlish/sql/queries/base.py +113 -2
- omlish/sql/queries/exprs.py +15 -2
- omlish/sql/queries/inserts.py +2 -1
- omlish/sql/queries/marshal.py +7 -1
- omlish/sql/queries/params.py +3 -2
- omlish/sql/queries/rendering.py +16 -4
- omlish/sql/queries/selects.py +17 -2
- {omlish-0.0.0.dev268.dist-info → omlish-0.0.0.dev269.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev268.dist-info → omlish-0.0.0.dev269.dist-info}/RECORD +33 -32
- {omlish-0.0.0.dev268.dist-info → omlish-0.0.0.dev269.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev268.dist-info → omlish-0.0.0.dev269.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev268.dist-info → omlish-0.0.0.dev269.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev268.dist-info → omlish-0.0.0.dev269.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/dataclasses/__init__.py
CHANGED
@@ -15,7 +15,7 @@ class EqProcessor(Processor):
|
|
15
15
|
# self_tuple = tuple_str('self', flds)
|
16
16
|
# other_tuple = tuple_str('other', flds)
|
17
17
|
# set_new_attribute(cls, '__eq__', _cmp_fn('__eq__', '==', self_tuple, other_tuple, globals=globals))
|
18
|
-
cmp_fields =
|
18
|
+
cmp_fields = [field for field in self._info.instance_fields if field.compare]
|
19
19
|
terms = [f'self.{field.name} == other.{field.name}' for field in cmp_fields]
|
20
20
|
field_comparisons = ' and '.join(terms) or 'True'
|
21
21
|
body = [
|