Re: [sqlalchemy] An Attribute Error is occurring but I am not understanding why?

2023-05-15 Thread Nishant Varma
Is it a JSON data type? I see some threads like this: https://github.com/sqlalchemy/sqlalchemy/issues/4027 On Mon, 15 May 2023 at 11:44, Shashank wrote: > I've created a flask application that makes use of SQLAlchemy to store and > retrieve the data, but I am facing this error. Can anybody

Re: [sqlalchemy] Exceeding the queue pool limit in a Flask application problem

2023-04-28 Thread Nishant Varma
See if this helps: https://docs.sqlalchemy.org/en/20/orm/session_basics.html#session-faq-whentocreate and https://docs.sqlalchemy.org/en/20/orm/contextual.html Session should be closed correctly etc. On Fri, Apr 28, 2023, 10:18 PM Erabil Erabil wrote: > When using SQL Alchemy in a Flask

Re: [sqlalchemy] Change a select clause + add a join automatically

2023-04-20 Thread Nishant Varma
> targeting the appropriate translation. > > Simon > > > On Tue, Apr 11, 2023 at 5:13 PM Nishant Varma > wrote: > >> Hello, >> >> I have this schema: >> >> class Question(Base): >> __tablename__ = "question" >> idn = Colum

[sqlalchemy] Change a select clause + add a join automatically

2023-04-11 Thread Nishant Varma
Hello, I have this schema: class Question(Base): __tablename__ = "question" idn = Column(Integer, primary_key=True) text = Column("text", String) translations = relationship("Translation", backref="question") class Translation(Base): __tablename__ = "translation" idn =

Re: [sqlalchemy] Breaking Integration with Locust Tests? Having a hard time debugging

2022-11-04 Thread Nishant Varma
It seems to have something to do with a non-numeric version. What is the SQLAlchemy verson? Check this issue https://github.com/oracle/python-cx_Oracle/issues/27 to see if it connected. On Sat, Nov 5, 2022, 4:52 AM 'Theo Chitayat' via sqlalchemy < sqlalchemy@googlegroups.com> wrote: > I have a

Re: [sqlalchemy] Override incorrectly defined classes

2022-10-24 Thread Nishant Varma
whether or not there is actually a PK > constraint covering "code". > > On Mon, Oct 24, 2022, at 12:16 PM, Nishant Varma wrote: > > We use SQLAlchemy to read/write data, but not create tables (as it done by > DBAs). Due to this, some of the definitions which are incorrect,

[sqlalchemy] Override incorrectly defined classes

2022-10-24 Thread Nishant Varma
We use SQLAlchemy to read/write data, but not create tables (as it done by DBAs). Due to this, some of the definitions which are incorrect, have not yet been caught (though it works for reads/writes etc.). Is there a DRY way to to override them for testing purposes (create tables on the fly