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 a test utility for preparing statements without executing them #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

csamak
Copy link

@csamak csamak commented Dec 24, 2019

The intent here is to sanity check queries against a connection/schema without dealing with input parameters. I am using this with hasql-th for fast tests to give some confidence that queries still make basic sense after schema migrations.

This may help with some benefits discussed in #28 without the compile-time downsides.

@nikita-volkov
Copy link
Owner

Sorry. I've missed your PR. Seems like a nice addition!

How do you feel about adapting it to the Session interface?

@csamak
Copy link
Author

csamak commented Jan 22, 2020

Thanks for taking a look!

IIRC I started with Session but stopped to avoid using the encoder. I didn't have a good way to go that route without requiring inputs.

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