flask-sqlalchemy icon indicating copy to clipboard operation
flask-sqlalchemy copied to clipboard

Adds SQLAlchemy support to Flask

Results 110 flask-sqlalchemy issues
Sort by recently updated
recently updated
newest added

I have a Flask app configured only with multiple binds using `SQLALCHEMY_BINDS` config option. The app runs fine, however, I am struggling to get external transaction to rollback in tests....

I've searched high and low trying to find a flask-sqlalchemy reflect example that actually works. There seem to be others with the same issue (via stack overflow) who are frustrated....

docs

### Expected Behavior When calling `db.create_all()`, the `after_create` event should only be dispatched once for a `sqlalchemy.MetaData` object when using multiple binds. Workaround-ish: There should be a way (extra keyword...

Devise a more extensible solution which deals with the issues raised in #232, #281, #265, #151 & #70

pagination

Safely commits if no errors, will rollback otherwise.

When using reflection to populate model from existing database, the `bind` is not populated correctly. This results in unusable model created when using non-default bind. Using default connection, and another...

I've been using sqlalchemy in the past and recently I've been experimenting with flask-sqlalchemy (using sqlalchemy's declarative system for my models). When I make a raw sql query, I have...

Added first and last property to the pagination class and relevant tests. Relevant issue: #567 Travis failed because of python 2.6 no longer being supported by SQLAlchemy see #587.

pagination

I'm new to Flask, and was wondering about a feature that I think would be useful to add to the Pagination class. Unless I'm missing it, there doesn't seem to...

pagination
good first issue
pr-is-ready

#345 is closed without a fix. Now I cannot specify an empty dictionary for the binds parameter in order to use the technique as describe by the SQLAlchemy docs regarding...

bug