Skip to content

Dynamic PostgreSQL effect - #15

Merged
fpringle merged 5 commits into
mainfrom
fpringle/dynamic-postgresql-effect
Sep 22, 2026
Merged

fpringle merged 5 commits into
mainfrom
fpringle/dynamic-postgresql-effect

Conversation

@fpringle

@fpringle fpringle commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Previously, functions like query_, insert etc were just concrete functions using the WithConnection effect, since there was only one possible way to interpret them.

Now we have a dynamic PostgreSQL effect that allows multiple interpretations. For now there's just the obvious one that calls out to the corresponding functions from postgresql-simple (basically identical to the previous situation). However this will enable us to define alternative interpreters, e.g. one that uses the instrumented versions of the same functions from hs-opentelemetry-instrumentation-postgresql-simple (see #6).

This changes the type signatures of almost all the functions, so this is a breaking change.

@fpringle
fpringle added this pull request to stack #17 September 18, 2026 09:16
@fpringle
fpringle merged commit 5e3284d into main Sep 22, 2026
23 checks passed
@fpringle
fpringle deleted the fpringle/dynamic-postgresql-effect branch September 22, 2026 09:02
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.

1 participant