我们是否必须在 asyncpg 中注册适配器才能执行查询,就像在 psycopg 中一样?
http://initd.org/psycopg/docs/extensions.html#psycopg2.extensions.register_adapter
我们是否必须在 asyncpg 中注册适配器才能执行查询,就像在 psycopg 中一样?
http://initd.org/psycopg/docs/extensions.html#psycopg2.extensions.register_adapter
发现这里使用了 set_type_codec。它们更容易,不需要类型自省。
https://github.com/MagicStack/asyncpg/blob/master/docs/usage.rst#custom-type-conversions