()" makes sure this compared on hash/eq
> rather than "is" to accommodate for Table vs. AnnotatedTable
>
>
> On Wed, May 26, 2021, at 11:49 AM, piotr maliński wrote:
>
> It's from sqlalchemy_utils -
> https://sqlalchemy-utils.readthedocs.io/en/latest/orm_helpers.html#get-m
It's from sqlalchemy_utils -
https://sqlalchemy-utils.readthedocs.io/en/latest/orm_helpers.html#get-mapper
śr., 26 maj 2021 o 17:47 Mike Bayer napisał(a):
> get_mapper() is not part of SQLAlchemy where is it?
>
> On Wed, May 26, 2021, at 9:35 AM, piotr maliński wrote:
>
>
AnnotatedTable doesn't have a mapper so I call:
get_mapper(annotated_table_object_here)
To then map a column name to a column on a model with _entity_descriptor.
In get_mapper this seems to hit the "if isinstance(mixed, sa.Table):"
branch and:
if mixed in mapper.tables
ends true to all 3 of
2021 o 16:06 Mike Bayer napisał(a):
> _compile_state() is an expensive call so you'd want to avoid doing that
> casually, that's why filter_by_zero is there.
>
>
>
> On Thu, May 20, 2021, at 4:35 AM, piotr maliński wrote:
>
> Managed to get this working:
> https://github.
Managed to get this working:
https://github.com/riklaunim/flask-jsonapi/commit/6fab64bb0f31e2e3f3e1ed82269fd26464f00aba
I used *self._compile_state()._joinpoint_zero()* while *self._filter_by_zero()
*also seems to be working.
czw., 20 maj 2021 o 01:41 Mike Bayer napisał(a):
> the