MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _decoder

Method _decoder

tests/test_codecs.py:1425–1426  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1423 return json.dumps(value).encode('utf-8')
1424
1425 def _decoder(value):
1426 return json.loads(value.decode('utf-8'))
1427
1428 await conn.set_type_codec(
1429 'json', encoder=_encoder, decoder=_decoder,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected