flask-sqlalchemy
flask-sqlalchemy copied to clipboard
Adds SQLAlchemy support to Flask
The performance of those two methods is really really bad when you have thousands of pages. In my case, with 100k pages, painting the paginator takes over 300 ms. `Pagination.iter_pages`...
Add a `flask db create` CLI command to call `create_all()`. Possibly add a command for `drop_all()` as well. Add an option `add_cli_group` that can either be a bool or a...
The query interface is legacy in SQLAlchemy 2.0, instead using the `session.execute(select())` pattern. It's not possible (or at least not at all supported) to modify the `Result` returned from `session.execute`...
## Changes This PR brings up the check for a SQLite URI within the `_apply_driver_defaults` function to allow for earlier detection of if the database should run in-memory. It adds...
## Outline When using the SQLite URI filename format for an in memory database `sqlite:///file::memory:?uri=true` Flask-SQLAlchemy still creates a database file on disk. ## MRE You can replicate this behaviour...
Pylance / Pyright reports a type error when instantiating a Model subclass with parameters: ``` Expected no arguments to "User" constructor ``` Minimal example: ``` from flask_sqlalchemy import SQLAlchemy from...
updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0)
datetime.utcnow() is deprecated for Python 3.12+, and raises a warning. Since warnings are treated as errors, this results in test failures. Since utcnow calls are done by the SQLAlchemy mapping...
Bumps the python-requirements group in /requirements with 4 updates: [sphinx-issues](https://github.com/sloria/sphinx-issues), [coverage[toml]](https://github.com/nedbat/coveragepy), [pytest](https://github.com/pytest-dev/pytest) and [tox](https://github.com/tox-dev/tox). Updates `sphinx-issues` from 3.0.1 to 4.0.0 Commits 50128ce Bump version and update changelog 0239bda Default to...
Bumps the github-actions group with 2 updates: [actions/setup-python](https://github.com/actions/setup-python) and [actions/cache](https://github.com/actions/cache). Updates `actions/setup-python` from 4.7.1 to 5.0.0 Release notes Sourced from actions/setup-python's releases. v5.0.0 What's Changed In scope of this release,...