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

Split Xandra prepare and execute options #48

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

noaccOS
Copy link
Contributor

@noaccOS noaccOS commented Feb 14, 2024

Fixes #47

lib/exandra.ex Outdated
@@ -218,6 +218,34 @@ defmodule Exandra do
Xandra.Cluster
)

@xandra_prepare_opts [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of duplicating these lists and the logic here, can we create a Xandra.Connection.split_prepare_and_execute_options/1 and use that here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Also fixed :telemetry_metadata and tests failing due to duplicate keys

@noaccOS noaccOS force-pushed the fix/query-opts branch 2 times, most recently from 94ec441 to 4fa83eb Compare February 15, 2024 09:18
With this the :timeout option is also available to xandra functions
instead of being dropped.

Fixes vinniefranco#47
@whatyouhide whatyouhide merged commit 6e48af3 into vinniefranco:main Feb 15, 2024
2 checks passed
@whatyouhide
Copy link
Collaborator

Thanks @noaccOS 💟

@noaccOS noaccOS deleted the fix/query-opts branch February 15, 2024 11:25
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.

Cannot specify Xandra query options
2 participants