I don't really know, because AbstractConcreteBase works pretty poorly and it's
better to use other patterns.
Try this workaround, which I have no idea if it helps in this case:
class A(...):
# ...
@classmethod
def __declare_last__(cls):
cls.__mapper__.with_polymorphic = ("*",
Do you need it to be an actual relationship? It's common to use an
association proxy for this:
https://docs.sqlalchemy.org/en/13/orm/extensions/associationproxy.html#simplifying-association-objects
Hope that helps,
Simon
On Fri, Mar 20, 2020 at 7:47 PM Mark Aquino wrote:
>
> I'd like to
Hi there,
I'm facing an issue with the use of AbstractConcreteBase class and a
@declarred_attr returning a query_expression()
class A(AbstractConcreteBase, Base):
@declared_attr
def foo(cls):
return query_expression()
class B(A):
...
class C(A):
...
objects =
On Wed, Mar 25, 2020, at 6:27 AM, Javier Collado Jiménez wrote:
> Hello,
> I'm having a problem trying to cleanup sqlalchemy objects. My application has
> a thread which handles DB connections. In some cases the thread dies and I
> want to do a cleanup so, next time the thread is started it
It's difficult to answer this question without knowing how your code
is structured. Are you reflecting your tables from the database, or
have you defined them statically?
What is the full stack trace when you get those errors?
Simon
On Wed, Mar 25, 2020 at 10:27 AM Javier Collado Jiménez
I've never used Druid, but this is really a question for the pydruid
project, I don't know if any of those developers are on this list. It
looks like pydruid only recently started supporting self-signed
certificates (or allowing you to ignore certificate errors):
Hello,
I'm having a problem trying to cleanup sqlalchemy objects. My application
has a thread which handles DB connections. In some cases the thread dies
and I want to do a cleanup so, next time the thread is started it would be
able to reconnect again.
The steps I tried are: