flask-sqlalchemy
flask-sqlalchemy copied to clipboard
Adds SQLAlchemy support to Flask
In Flask-SQLAlchemy 2.5.1, when I create a SQLite database connection with a relative path, the database is created in the application root directory rather than the instance directory. It looks...
flask-sqlalchemy returns meaningless error when trying to get engine for bind when configuration does not contain any binds for python in optimized mode **(assertions is not evaluated)**. ``` File "replica.py",...
My app.py file ``` from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'postgres:////tmp/test.db' db = SQLAlchemy(app) #...
The following warning is raised when using the pagination API. ``` /usr/local/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py:550: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery....
Bumps [sphinx-issues](https://github.com/sloria/sphinx-issues) from 1.2.0 to 3.0.1. Commits 223b8e0 Bump version and update changelog 050befd Fix "exception: 'in <string>' requires string as left operand, not type" (#126) b2baffe Bump version, update...
This may be a problem on SQLAlchemy itself, simple example: ``` python from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///example.sqlite" db = SQLAlchemy(app) db.session.get_bind()...
In SQLAlchemy, the isolation level can be set for an individual transaction: https://docs.sqlalchemy.org/en/14/orm/session_transaction.html#setting-isolation-for-individual-transactions However, it states that >A key caveat regarding isolation level is that the setting cannot be safely...
Revisiting this issue, patch for 2.x The SignallingSession get_bind is being called without any parameters, this is probably due to the new SQLAlchemy proxied mechanism for registering scoped sessions ```...
Bumps [pallets-sphinx-themes](https://github.com/pallets/pallets-sphinx-themes) from 2.0.1 to 2.0.2. Release notes Sourced from pallets-sphinx-themes's releases. 2.0.2 What's Changed fix dirhtml canonical url by @davidism in pallets/pallets-sphinx-themes#53 compat for jinja 2.0 deprecations by @davidism...
Hi, I need to bind multiple databases, and there is a good way to do it as follow document. https://flask-sqlalchemy.palletsprojects.com/en/2.x/binds/ but, after that, sometimes I want to run a plain-text...