-
Notifications
You must be signed in to change notification settings - Fork 24
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
Expose res_clear as method #42
Comments
Easy enough to add, but why do you want that? What is the reason? The (not objecting, jusr asking) |
I was converting some C code (that used libpq) to lua. It would be nice for debuggability if I can make the calls into libpq deterministic. |
I will soon add methamethods to make result sets -able. Think that is the proper way. |
This issue was about exposing the method as more than a metamethod, so that I could call it e.g. in a test exactly when I wanted. Please consider reopening/accepting? |
If you can make use of this feature, then I can add it, it does not harm.
So yes, I will add it.
… Am 06.12.2020 um 10:41 schrieb daurnimator ***@***.***>:
This issue was about exposing the method as more than a metamethod, so that I could call it e.g. in a test exactly when I wanted.
Rather than waiting for the GC; or with lua 5.4's new close: ending the current scope.
Please consider reopening/accepting?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#42 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADIAHZ7H4XKTZTAXY5Q7O3STNGVVANCNFSM4CPIUM7A>.
|
To allow explicit collection, please expose
res_clear
(currently a __gc metamethod) asres:clear()
The text was updated successfully, but these errors were encountered: