Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Watermill example for publishing events #29

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Conversation

m110
Copy link
Member

@m110 m110 commented Jan 5, 2023

No description provided.

@m110 m110 changed the base branch from master to stream January 5, 2023 23:19
Base automatically changed from stream to master January 6, 2023 17:11
func (s WatermillSchemaAdapter) SelectQuery(topic string, consumerGroup string, offsetsAdapter sql2.OffsetsAdapter) (string, []interface{}) {
nextOffsetQuery, nextOffsetArgs := offsetsAdapter.NextOffsetQuery(topic, consumerGroup)
selectQuery := `
SELECT id, stream_id, event_payload FROM events
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if it wouldn't be possible to add extra config to the Watermill adapter to provide it instead of rewriting.

It may be useful, as I suspect that such naive querying may not always work in Postgres properly. In that case, fixing it in our adapter will not propagate here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants