2

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.

2 Answers 2

4

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.

1

You're on the right page of the documentation, you just need to skip up to the Column and Datatypes - Generic Types documentation.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.