In postgresql the || operator is the only way (no, the concat() function doesn't work) to concat 2 JSONB dicts; note that this works only with JSONB and not JSON.
Example:
suppose column "t.c" contains '{"a": 1}'::jsonb
SELECT t.c || jsonb_build_object('b', 2);
gives
{"a": 1, "b": 2}
Question: How can I obtain the || operator in sqlalchemy (core, 1.3) to merge 2 JSONB dicts?