[sqlalchemy] relationship

2022-04-12 Thread Siarhei Siarhei
raise sa_exc.InvalidRequestError( sqlalchemy.exc.InvalidRequestError: Can't attach instance ; another instance with key (, (1,), None) is already present in this session. # ... class User(Base): __tablename__ = "users" id = sa.Column(sa.Integer, primary_key=True) name = sa.Column(

[sqlalchemy] SQLALCHEMY conncection to Sybase Adaptive Server Anywhere Version 7 via TCI/IP

2022-04-12 Thread Trainer Go
im a bit lost and need some help. im trying to set up a database connection with sqlalchemy to a Sybase Adaptive Server Anywhere Version 7 and i dont know how. I would be really happy if somebody could help me. Thanks in advace. Greetings Mae -- SQLAlchemy - The Python SQL Toolkit and Obje