Closed filipmarkoski closed 2 years ago
Sorry. This package only support the following type UUID int float Decimal date time datetime timedelta bool dict list
And I think usually more efficient and easier to store images in the filesystem and reference them via an URI stored in the database.
More data types may be supported in the future. But there are no development plans for this yet and will update here
What about file uploads? https://fastapi.tiangolo.com/tutorial/request-files/
I created a few SQLAlchemy models containing some PostgreSQL data types such as
from sqlalchemy.dialects.postgresql import BYTEA, INTERVAL, JSONB, UUID
and I encountered the following exception
fastapi_quickcrud.misc.exceptions.ColumnTypeNotSupportedException: The type of column Blob (BYTEA) not supported yet
I haven't tested the other types except for Postgres BYTEA, however, there might be an issue for
from sqlalchemy import ARRAY
as well.I want to build a ReactJS app in which I can upload a photo via a FastAPI endpoint and store it in the BYTEA field. Afterwards, I would also like to have a FastAPI endpoint that lists all of the BYTEA entries, which I can use to make a gallery in ReactJS.