-
Notifications
You must be signed in to change notification settings - Fork 2
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
Server unable to exit after running a query #20
Comments
I provisioned Close() methods in the C++ extension for statement and resultsets, and they should be called automatically once the references go out of scope and the garbage is collected. So you don't need to call anything, just don't keep statements/resultsets objects live(in a collection or something). |
Would it be possible to expose the close methods to the public API? I am trying to use the redstone_mapper package to handle my database connections, but it requires that the db driver have access to a close method. |
Yeah, I don't see why not. |
I suppose I could do that. I would prefer to have direct access though. I have not actually started implementing anything, just looking at the requirements redstone_mapper will need to handle all the database connections. |
The only reason for my hesitation is that once you call Close() on the object, there is nothing else you can do with it, right? |
That makes sense. It seems to jive with how the |
Hey @aam,
I have noticed something weird while using your library. Any time after my query is run, my Dart server-side is unable to be closed via Ctrl+C or Ctrl+X. Is there anything I need to do after I connect and execute a query?
Thanks
The text was updated successfully, but these errors were encountered: