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

Method _encoder

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

Source from the content-addressed store, hash-verified

1466 conn = await self.connect()
1467 try:
1468 def _encoder(value):
1469 return json.dumps(value).encode('utf-8')
1470
1471 def _decoder(value):
1472 return json.loads(value.decode('utf-8'))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected