MCPcopy Index your code
hub / github.com/rommapp/romm / CustomJSON

Function CustomJSON

backend/utils/database.py:10–12  ·  view source on GitHub ↗

Custom SQLAlchemy JSON type that uses JSONB on PostgreSQL.

(**kwargs: Any)

Source from the content-addressed store, hash-verified

8
9
10def 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
15def is_db_version_compatible(

Callers 15

upgradeFunction · 0.90
upgradeFunction · 0.90
upgradeFunction · 0.90
downgradeFunction · 0.90
upgradeFunction · 0.90
upgradeFunction · 0.90
downgradeFunction · 0.90
upgradeFunction · 0.90
downgradeFunction · 0.90
upgradeFunction · 0.90
upgradeFunction · 0.90
downgradeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected