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
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a public interface to read and write data to the TCP transport of asyncpg's
Connectionclass?In the past I have used pg8000 where I could take advantage of its
Connectionclass' public methodssock_readandsock_writeto read and write data to the underlying TCP socket of the databaseConnectionclass.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