我正在使用SQLAlchemy处理来自API端点的请求;我的数据库表(我有数百个)通过唯一的字符串(例如test_table_123)进行区分…… 在下面的代码中,__tablename__是静态的。如果可能的话,我希望根据我想要检索的特定表进行更改,因为编写数百个唯一的类将是单调乏味的。from config import db, ma # SQLAlchemy is init'd and tied to Flask in this config module
class specific_table(db
我正在尝试创建一个表,用于使用SQLAlchemy ORM处理计费频率,但我似乎不能让它满意 下面的代码在Postgres中非常有效: create table test_interval(中实现同样的功能 from typing import Any
from sqlalchemy.ext.declarativeas_declarative, declared_attr
cl