I have simple setup with SQLAlchemy currently it's setup to connect with existing database like this:
self.users = db.Table('users', self.metadata, autoload=True, autoload_with=self.engine)
It connects to existing table, but I don't know how to check for existing row when I connect to table when it's not created by SQLAlchemy.
What I've tried:
session.query(self.users.query.filter(self.users.id == 1).exists()).scalar()
I got that Table object doesn't have attribute query