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

feat: support options for insertions #80

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

noaccOS
Copy link
Contributor

@noaccOS noaccOS commented Jan 9, 2025

correctly build query from options by adding Exandra.Connection.insert/7 which accepts options as the last parameter.

Exandra.insert and Exandra.insert_all are overwritten so that they can call this function instead of the default.

Closes #76

Exandra.insert and Exandra.insert_all (and unzip_inserts) have been taken from ecto_sql, which is licensed under the Apache 2.0 license.
Should I somehow mark these functions as being licensed under Apache?

correctly build query from options by adding
`Exandra.Connection.insert/7` which accepts
options as the last parameter.

`Exandra.insert` and `Exandra.insert_all` are overwritten so that they
can call this function instead of the default.
@Annopaolo
Copy link

@vinniefranco could you please take a look here? It would solve some issues (e.g. can't use Exandra for writing inserts with TTL, see #76) and make Exandra more in line with other Ecto adapters.
If this is not the way, are there other possible options, like using hints?

@vinniefranco vinniefranco merged commit 93aa065 into vinniefranco:main Feb 28, 2025
3 of 4 checks passed
@noaccOS noaccOS deleted the push-nnwonukzzrxs branch February 28, 2025 13:20
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.

Impossible to pass options into Exandra.Connection.insert/7
3 participants