Skip to content

Is it possible to support dialect as option #202

Answered by leonarduschen
shengha2 asked this question in Q&A
Discussion options

You must be logged in to vote

Quoting from sqlalchemy.ARRAY official documentation

This type serves as the basis for all ARRAY operations. However, currently only the PostgreSQL backend has support for SQL arrays in SQLAlchemy. It is recommended to use the PostgreSQL-specific sqlalchemy.dialects.postgresql.ARRAY type directly when using ARRAY types with PostgreSQL, as it provides additional operators specific to that backend.

@agronholm seems like we can just replace from sqlalchemy import ARRAY with from sqlalchemy.dialects.postgresql import ARRAY

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@leonarduschen
Comment options

@shengha2
Comment options

@leonarduschen
Comment options

@shengha2
Comment options

Answer selected by shengha2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants