Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the sqlalchemy equivalent column type for money and OID column types in Postgres?

0
Posted

What is the sqlalchemy equivalent column type for money and OID column types in Postgres?

0

we’ve never had an “OID” type specifically, though we’ve supported the concept of an implicit “OID” column on every table through the 0.4 series, primarily for the benefit of postgres. However since user-table defined OID columns are deprecated in Postgres, and we in fact never really used the OID feature that was present, we’ve removed this feature from the library. If a particular type is not supplied in SQLA, as an alternative to specifying a custom type, you can always use the NullType which just means SQLA doesn’t know anything in particular about that type. If psycopg2 sends/receives a useful Python type for the column already, there’s not really any need for a SQLA type object, save for issuing CREATE TABLE statements.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123