Top "Sqlalchemy" questions

SQLAlchemy is a Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.

SQLAlchemy query to return only n results?

I have been googling and reading through the SQLAlchemy documentation but haven't found what I am looking for. I am …

sqlalchemy
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres

I'm trying to connect to a Postgres database with SQLAlchemy. I've installed psycopg2. However, I get the error sqlalchemy.exc.…

python postgresql sqlalchemy flask-sqlalchemy psycopg2
Flask SQLAlchemy querying a column with "not equals"

I can query my Seat table for all seats where there is no invite assigned: seats = Seat.query.filter_by(…

python sqlalchemy flask flask-sqlalchemy
sqlalchemy exists for query

How do I check whether data in a query exists? For example: users_query = User.query.filter_by(email='x@…

python sqlalchemy exists
How to use NOT IN clause in sqlalchemy ORM query

how do i convert the following mysql query to sqlalchemy? SELECT * FROM `table_a` ta, `table_b` tb where 1 AND …

python mysql sqlalchemy
sqlalchemy.exc.ArgumentError: Can't load plugin: sqlalchemy.dialects:driver

I am trying to run alembic migration and when I run alembic revision --autogenerate -m "Added initial tables" It fails …

python sqlalchemy psycopg2 alembic
memory-efficient built-in SqlAlchemy iterator/generator?

I have a ~10M record MySQL table that I interface with using SqlAlchemy. I have found that queries on large …

python mysql sqlalchemy
How to do an upsert with SqlAlchemy?

I have a record that I want to exist in the database if it is not there, and if it …

python sqlalchemy upsert
Separate SQLAlchemy models by file in Flask

Many examples for Flask apps that I have seen have the models stored directly in the main app file (http://…

python sqlalchemy flask flask-sqlalchemy
How to create an SQL View with SQLAlchemy?

Is there a "Pythonic" way (I mean, no "pure SQL" query) to define an SQL view with SQLAlchemy?

python postgresql sqlalchemy