Aron Podrigal
4e2e8151b0
[mod_lua] Add Dbh:query_rows
...
The added method, query_rows, allows the retrieval of rows from a database without the need for a callback function, it fetches the rows and returns 3 arguments as show below.
```
lua
local success, rows, err = dbh:query_rows(sql)
```
This function performs better with large number of rows. Test results below 50k rows returned.
dbh:query(sql, callback) - 0.335949 seconds
dbh:query_rows(sql) - 0.253178 seconds
2025-01-15 16:30:59 +03:00
Andrey Volk
4dd86960ba
[mod_lua] Fix leaks.
2020-01-21 13:27:06 +00:00
Seven Du
813771f737
FS-11676 add JSON support to mod_lua
2019-07-17 19:46:09 +04:00
Aron Podrigal
d3201c6335
FS-9741: lua expose db err str in freeeswitch.dbh
...
Added 2 methods to lua freeswitch.Dbh
`last_error()` Returns the error string from the last query or nil.
`clear_error()` clears the error string.
2016-11-21 21:11:03 +00:00
Michael Jerris
07d09b7869
FS-7180: add --enable-sytem-lua configure arg to allow building mod_lua against system lua and allow mod_lua to build against lua 5.1 or 5.2
2015-01-20 11:48:00 -05:00
Anthony Minessale
081e261956
FS-4883 --resolve I can add this but if it leads to issues in the loaded code we may not have resoures to investigate
2012-11-29 08:58:44 -06:00
Anthony Minessale
09ad887948
FS-3841 --resolve ok return the string "die" or "exit" from hanguphook to cause an error or call s:destroy("any err message"); either should now halt the script
2012-01-27 19:03:04 -06:00
Leon de Rooij
425df0c783
Added test_reactive to mod_lua freeswitch.Dbh
2011-01-27 14:17:49 +01:00
Brian West
d79cf48475
FS-2962
2011-01-05 11:45:48 -06:00
Leon de Rooij
09e6fd3f4e
Make dbh:connected accessible from Lua - thanks Grmt
2011-01-03 12:20:06 +01:00
Anthony Minessale
26f2e095ef
MODLANG-174
2010-09-07 11:21:25 -05:00
Anthony Minessale
886e1ddb4d
run indent on the whole tree and update copyright dates in prep for 1.0.5
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Anthony Minessale
01e2a5ee74
fix lua you all need this
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14767 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-04 16:03:28 +00:00
Anthony Minessale
e988135dba
make luarun use a new pool every call
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14763 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-04 15:27:36 +00:00
Michael Jerris
571e7cb8c1
mod_lua: fix windows build (FSBUILD-149)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12919 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-06 18:53:43 +00:00
Anthony Minessale
4025b42470
fix hanguphook order of operations vs destroy method issue in c++ code
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12730 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:30:08 +00:00
Brian West
12f01067c5
fix lua originate
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9297 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-14 17:35:46 +00:00
Brian West
23c0d9ebbf
add unsetInputCallback method
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9296 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-14 17:20:34 +00:00
Anthony Minessale
6f6cd375ad
tweak for MODLANG-77
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9244 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-11 18:47:30 +00:00
Anthony Minessale
df5afbcacd
even more lang stuff
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9063 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-16 21:06:14 +00:00
Brian West
8b8a7f14c6
fix callback arg and CoreSession::sleep to not require a file
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-12 18:44:05 +00:00
Anthony Minessale
0bc3e84831
add namespace
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8356 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-12 00:24:38 +00:00
Anthony Minessale
385528394e
add optional arg to hangup hook in perl/lua
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8323 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-08 23:58:45 +00:00
Anthony Minessale
b6d649fc86
look out below
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8221 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-30 19:42:26 +00:00
Michael Jerris
47985c5683
start of msvc build
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8219 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-30 14:20:31 +00:00
Anthony Minessale
5952667987
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8214 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-29 23:34:26 +00:00
Anthony Minessale
4eca13ac23
add mod_lua
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8199 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-25 22:16:16 +00:00