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

As detailed in https://github.com/mgood/flask-debugtoolbar/issues/96, the current logic for generating the calling context often fails unnecessarily. Specifically, when a project is structured like the following, ``` project ├── project │   ├──...

Current paginate iterates over every single page possible, and discards most of them, for large page sets > 50,000 this can be quite slow and noticeable. This patch should make...

pagination

I love the signals for tracking modifications to models. However, they don't yet support [nested sessions](http://docs.sqlalchemy.org/en/latest/orm/session_transaction.html#using-savepoint). Here is a proposal for adding support for this. It uses a stack of...

This allows query recording to be disabled regardless of the other application settings

flask-sqlalchemy support multiple connections through binds, but the documentation how to use raw connections is missing. The issue [#107](https://github.com/pallets/flask-sqlalchemy/issues/107) shows you could get the bind connection engine just using `db.get_engine(app,...

docs

The standard repr is misleading such that: ```python instance_state = inspect(item) print(f"{item = }; {instance_state.transient = }; {instance_state.pending = }") # item = ; instance_state.transient = False; instance_state.pending = True...

I would like to be able to specify different `SQLALCHEMY_ENGINE_OPTIONS` for every bind in the `SQLALCHEMY_BINDS` dict. It would be nice if `SQLALCHEMY_DATABASE_URI` + `SQLALCHEMY_ENGINE_OPTIONS` would form a configuration pair,...

Whenever multiple app contexts are pushed to the context stack the session handling fails. Although this is not a likely use-case outside of tests it is super-hard to debug *when*...

As per the decision made in #357. Functionality to customize by **init** args: - session options, including scope function - Session class (#130) - `db.Query` with query_class, defaults to BaseQuery...

config

### Expected Behavior I have a flask project with two binds set in `SQLALCHEMY_BINDS` and with `SQLALCHEMY_DATABASE_URI` not specified. I would like this to work as long as `__bind_key__` is...