我们是否必须在异步for中注册适配器以执行查询,就像在心理学中一样?
http://initd.org/psycopg/docs/extensions.html#psycopg2.extensions.register
发布于 2018-01-18 00:31:04
发现这里使用的是set_type_codec。它们要容易得多,而且不需要类型内省。
以下是一些很好的参考资料:codec
https://github.com/MagicStack/asyncpg/blob/master/docs/usage.rst#custom-type-conversions
https://stackoverflow.com/questions/48275337
复制相似问题