SQLAlchemy Data Types

Integer an integer
String(size) a string with a maximum length (optional in some database, e.g. PostgreSQL)
Text some longer unicode text
DateTime date and time expressed as Python datetime object
Float stores floating point values
Boolean stores a boolean value
PickleType stores a pickled Python object
LargeBinary stores large arbitrary binary data

Calling db.String() with no max number of character passes into it, is the same as declaring a column with data type VARCHAR.

猜你喜欢

转载自blog.csdn.net/BSCHN123/article/details/121307588