简体   繁体   中英

Flask-SQLAlchemy data types

I'm starting to use the Flask-SQLAlchemy package in my web project and am wondering about the data type usage. It appears that the package can use any of the SQL standard types , but also seems to have a few of it's own ( String ) that are likely recasts of one of the standard types. The notation difference to distinguish these seems to be caps ( INTEGER ) for the standard types and a starting cap ( Integer ) for the package specific types.

Does anyone know where they do an overview of all the permissible types - I'm mainly interested in understanding the package specific ones and their characteristics. I've been reading the documentation, and may have missed it. Otherwise, I know I can just keep it simple and use all standard types.

您在文档的右侧,只需要跳到Column and Datatypes-Generic Types文档即可

This page provides an overview of the types implemented in SQLAlchemy.

You can also use the flask-sqlalchemy.SQLAlchemy class to look through the available data types.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM