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

The plugin breaks the DeclarativeBase, e.g.: ``` from typing import Any from flask_sqlalchemy import SQLAlchemy from sqlalchemy.orm import DeclarativeBase from sqlalchemy.types import JSON class Base(DeclarativeBase): type_annotation_map = {dict[str, Any]: JSON}...

I would like to know if it is possible to add new configuration keys regarding the following values of the database URI: - DIALECT - DRIVER - USERNAME - PASSWORD...

Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4. Release notes Sourced from requests's releases. v2.32.4 2.32.4 (2025-06-10) Security CVE-2024-47081 Fixed an issue where a maliciously crafted URL and trusted environment will retrieve...

dependencies
python

I've added a new attribute for Pagination - default_per_page. - if per_page is not provided per_page = default_per_page - if per_page is invalid (less than 1) AND error_out = False,...

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.6. Release notes Sourced from jinja2's releases. 3.1.6 This is the Jinja 3.1.6 security release, which fixes security issues but does not otherwise change behavior...

dependencies
python

With SQLAlchemy 2.0.36 mapping as a dataclass while also providing a ``__table__`` attribute is not supported. Skip associated test when ``MappedAsDataclass`` is in use. Fixes: #1378 See https://github.com/sqlalchemy/sqlalchemy/commit/6ae7f2378971b16f024eb5ab851cc4533bc4e61a for associated...

## Description By default, the pagination query methods enforce `.unique()` on the session/execute level. Since limit/offset is done beforehand at the query level, if the retrieved elements are not unique,...

This matches https://github.com/ipython/ipykernel/pull/1277/commits/947894b8c0f52cc1ecbfb1600f27112ee1632445, and there doesn't seem to be a sensible alternative at the moment. Fixes: #1379

Various tests are failing on Python 3.13.0, with the following pattern: ```pytb _____________________________ test_paginate[Model] _____________________________ cls = func = when = 'call' reraise = (, ) @classmethod def from_call( cls,...

After upgrading sqlalchemy from 2.0.34 to 2.0.36 we started seeing two tests fail on flask-sqlalchemy 3.1.1 on Python 3.12.7. - Update sqlalchemy to 2.0.36 Tests should succeed, since this release...