Skip to content

Releasing connections #55

Answered by bosborn
JohnCastle4 asked this question in Q&A
Jul 25, 2023 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Hello.

Yes, a GPKGResultSet returned from any method should/must be closed immediately when the results are no longer needed. A SQLite (read result) connection is pulled from the connection pool for the query and not released until the GPKGResultSet is closed. At the same time, that connection must remain open temporarily to access those results. Any method in this library that internally opens but does not return the result set, closes that connection before return (unless you found a bug where that is not the case). Any call to this library that is returned any type of Result Set becomes responsible for closing the results as part of normal and expected usage.

Unless I am misunderstandi…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@bosborn
Comment options

@JohnCastle4
Comment options

@JohnCastle4
Comment options

@bosborn
Comment options

@JohnCastle4
Comment options

Answer selected by bosborn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants