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 execute(f, stmt) method #35

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Conversation

alyst
Copy link
Contributor

@alyst alyst commented Jan 26, 2021

In #30 I've added execute(f, db, sql) method, and this PR complements it with execute(f, stmt).
execute(f, stmt) takes care that the cursor object created by execute(stmt) is closed upon return (even if f throws).
This method gets called by DBInterface.execute(f, db, sql).

This PR requires that DBInterface implementations provide DBInterface.close!(cursor) methods.
SQLite will have the corresponding method implemented.

the method takes care of closing the cursor object created by
execute(stmt)
@alyst
Copy link
Contributor Author

alyst commented Jan 26, 2021

The introduction of execute(f, stmt) requires the minor version increment.

@quinnj quinnj merged commit 76c5640 into JuliaDatabases:master Jan 26, 2021
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