请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Base为什么 不能用flask_sqlalchemy的inspect函数呢

图片描述
老师,这个Base为什么 不能用flask_sqlalchemy的inspect函数呢,而继承Base的类可以

正在回答 回答被采纳积分+3

1回答

7七月 2020-06-17 11:54:52

哪个inspect?麻烦详细一些

0 回复 有任何疑惑可以回复我~
  • 提问者 慕粉1635043625 #1
    function sqlalchemy.inspect(subject, raiseerr=True)
    Produce an inspection object for the given target.
    
    The returned value in some cases may be the same object as the one given, such as if a Mapper object is passed. In other cases, it will be an instance of the registered inspection type for the given object, such as if an Engine is passed, an Inspector object is returned.
    
    Parameters
    subject – the subject to be inspected.
    
    raiseerr¶ – When True, if the given subject does not correspond to a known SQLAlchemy inspected type, sqlalchemy.exc.NoInspectionAvailable is raised. If False, None is returned.
    回复 有任何疑惑可以回复我~ 2020-06-18 12:24:18
  • 7七月 回复 提问者 慕粉1635043625 #2
    这是什么?把代码贴出来 详细说明下
    回复 有任何疑惑可以回复我~ 2020-06-18 14:55:25
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信