Skip to content

How to use streams with MySql (works for postgres) #86

Answered by weiznich
mpiorowski asked this question in Q&A
Discussion options

You must be logged in to vote

The issue here is that both stream types are not supposed to be equal. The postgres stream type is independent from the underlying connection, while the mysql stream type requires a connection for the whole time. That means the connection must outlive the stream. That's not the case in your example, as the connection is dropped by the end of the get_notes_by_user_uuid_stream_stream function, while the stream itself is returned by that function.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mpiorowski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants