<div dir="ltr"><div>I went ahead and worked up a short blog post about this: <a href="http://xylil.com/2020/07/01/freeswitch-dbh-fetch-convenience-functions-for-lua/">http://xylil.com/2020/07/01/freeswitch-dbh-fetch-convenience-functions-for-lua/</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 15, 2020 at 9:07 PM Chad Phillips <<a href="mailto:chad@apartmentlines.com">chad@apartmentlines.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Curious if <a href="https://freeswitch.org/confluence/display/FREESWITCH/Lua+with+Database#LuawithDatabase-freeswitch.Dbh" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Lua+with+Database#LuawithDatabase-freeswitch.Dbh</a> is missing any support functions that freeswitch.Dbh has under the hood?<div><br></div><div>It seems some convenience functions for the following would be quite nice:</div><div><br></div><div> - Fetch query results into a table of tables</div><div> - Fetch one result row</div><div> - Fetch one row</div><div><br></div><div>I hacked up those in some quick helpers here: <a href="https://gist.github.com/thehunmonkgroup/f92ca495c4c366d74fa9269320806cec" target="_blank">https://gist.github.com/thehunmonkgroup/f92ca495c4c366d74fa9269320806cec</a></div><div><br></div><div>Just wondering if I'm missing anything.</div></div>
</blockquote></div></div>