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

Method hstore_encoder

tests/test_codecs.py:1201–1202  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1199 return result
1200
1201 def hstore_encoder(obj):
1202 return ','.join('{}=>{}'.format(k, v) for k, v in obj.items())
1203
1204 try:
1205 await self.con.set_type_codec('hstore', encoder=hstore_encoder,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected