Add support for sqlalchemy.dialects.postgresql fields
See original GitHub issueWhen I try to register a SQLAlchemyNode
whose model has a postgres-specific field, I receive the error message Don't know how to convert the SQLAlchemy field [table_name].[field_name] (<class 'sqlalchemy.sql.schema.Column'>)
. It’d be great if these fields worked out of the box.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
PostgreSQL - SQLAlchemy 1.4 Documentation
The PostgreSQL dialect supports arrays, both as multidimensional column types as well as array literals: ARRAY - ARRAY datatype. array - array literal....
Read more >sqlalchemy.dialects postgresql Example Code
Python example code that shows how to use the postgresql callable from the sqlalchemy.dialects module of the SQLAlchemy project.
Read more >PostgreSQL - SQLAlchemy 1.1 Documentation - Read the Docs
The Postgresql dialect supports arrays, both as multidimensional column types as well as array literals: postgresql.ARRAY - ARRAY datatype; postgresql.array - ...
Read more >How to do a proper upsert using sqlalchemy on postgresql?
I basically want to insert a bulk of rows, and if one id is already taken, I want to update it with the...
Read more >Beware of JSON fields in SQLAlchemy - Adrià Mercader
SQLAlchemy supports JSON fields natively so you can easily add support ... declarative_base from sqlalchemy.dialects.postgresql import JSONB ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Due a wrapper (for JSONB on Sqlite) I wrote (and stole/copied) I ran into the same error. Maybe this will help others.
Postgresql SQLAlchemy field conversion is now available in
1.0.dev
(master branch).Closing the issue!