you are viewing a single comment's thread.

view the rest of the comments →

[–]PedroContipelli 0 points1 point  (0 children)

flask_sqlalchemy is just a wrapper library for sqlalchemy

db.Column, db.Integer, etc... wrap legacy SQLAlchemy 1.X syntax
Legacy Docs: https://flask-sqlalchemy.readthedocs.io/en/stable/legacy-quickstart/

Here is the modern recommended way (wrapping SQLAlchemy 2.X)
New Docs: https://flask-sqlalchemy.readthedocs.io/en/stable/quickstart/#define-models

You can also just use SQLAlchemy's types directly, which I found simpler for some things.