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

Method _encoder

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

Source from the content-addressed store, hash-verified

1420 conn = await self.connect()
1421 try:
1422 def _encoder(value):
1423 return json.dumps(value).encode('utf-8')
1424
1425 def _decoder(value):
1426 return json.loads(value.decode('utf-8'))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected