Re: [sqlalchemy] Location of "string lookup" for classes in a declarative base?

2021-05-27 Thread Mike Bayer
that's great and i wish more folks would see it that way :) On Thu, May 27, 2021, at 11:56 AM, Brendan Blanchard wrote: > Thanks Mike, > > Glad to see it's in the works. > > As for my case, I sometimes forget I'm working in sqlalchemy *and Python*, > and completely overlook simple Python solu

Re: [sqlalchemy] Location of "string lookup" for classes in a declarative base?

2021-05-27 Thread Brendan Blanchard
Thanks Mike, Glad to see it's in the works. As for my case, I sometimes forget I'm working in sqlalchemy *and Python*, and completely overlook simple Python solutions to seemingly-sqlalchemy related issues. Since I have a class factory (which is the only place these classes will come from), I can

Re: [sqlalchemy] Location of "string lookup" for classes in a declarative base?

2021-05-27 Thread Mike Bayer
we haven't made a public APi for this however the discussion of what it would look like is at https://github.com/sqlalchemy/sqlalchemy/issues/6080 and the proposal is at https://github.com/sqlalchemy/sqlalchemy/issues/6080#issuecomment-801253683. What you can do now is use sqlalchemy.orm.regi

[sqlalchemy] Location of "string lookup" for classes in a declarative base?

2021-05-27 Thread Brendan Blanchard
Hi all, I'm using a class factory to dynamically generate SQLA types and am rightfully getting the warning: *SAWarning: This declarative base already contains a class with the same class name and module name as , and will be replaced in the string-lookup table.* when I attempt to use it twi

Re: [sqlalchemy] Multiple mappers found by get_mapper - model inheritance

2021-05-27 Thread piotr maliński
That seems to help. I'll make an issue for it. śr., 26 maj 2021 o 18:16 Mike Bayer napisał(a): > OK then please report this as a bug in sqlalchemy-utils > > right now they are not looking at local table > > looking at the code here: > https://sqlalchemy-utils.readthedocs.io/en/latest/_modules/sq