Is it possible to read and write to the TCP transport of asyncpg's connection class? #1007
Unanswered
jackwotherspoon
asked this question in
Q&A
Replies: 2 comments 3 replies
-
@elprans Would the suggested way to implement this be to create a custom |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can try |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a public interface to read and write data to the TCP transport of asyncpg's
Connection
class?In the past I have used pg8000 where I could take advantage of its
Connection
class' public methodssock_read
andsock_write
to read and write data to the underlying TCP socket of the databaseConnection
class.Example of pg8000:
Is there a way to do something similar in asyncpg? I am relatively new to asyncpg and asyncio so I am wondering what the best way to achieve a similar pattern would be?
Beta Was this translation helpful? Give feedback.
All reactions