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

[query agent] Allow to execute DML statements #605

Merged
merged 4 commits into from
Oct 18, 2023
Merged

Conversation

eolivelli
Copy link
Member

@eolivelli eolivelli commented Oct 17, 2023

Summary:

  • in the "query" / "query-vector-db" agents you can now set "mode=execute"
  • you can also configure a list of "generated keys" columns, returned by the database (for instance of you insert a record and you want to get the value for the PK automatically assigned)
  • then you can execute DML queries
  • in this case the results depend on the Database implementation
  • for JDBC datasource in the output field the agent puts a Map with the update count and the generated keys

@eolivelli eolivelli marked this pull request as ready for review October 17, 2023 16:41
@eolivelli eolivelli self-assigned this Oct 17, 2023
@eolivelli eolivelli merged commit bbe8f8a into main Oct 18, 2023
9 checks passed
@eolivelli eolivelli deleted the impl/query-dml branch October 18, 2023 07:41
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
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.

None yet

1 participant