Custom SQLAlchemy JSON type that uses JSONB on PostgreSQL.
(**kwargs: Any)
| 8 | |
| 9 | |
| 10 | def CustomJSON(**kwargs: Any) -> sa.JSON: |
| 11 | """Custom SQLAlchemy JSON type that uses JSONB on PostgreSQL.""" |
| 12 | return sa.JSON(**kwargs).with_variant(sa_pg.JSONB(**kwargs), "postgresql") |
| 13 | |
| 14 | |
| 15 | def is_db_version_compatible( |
no outgoing calls
no test coverage detected