diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-06 11:51:18 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-06 11:51:18 -0700 |
commit | 8d1517ed8c7f253a6efc4d153836159138ed9fac (patch) | |
tree | c27260654c8831a3458face8fe836f3fdb05fedd | |
parent | 08c24ff362b18132ce2162e8879965327cc5bfce (diff) |
Adding protected equivalents of functions
-rw-r--r-- | lib/dblib.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua index 093a546..0c07edd 100644 --- a/lib/dblib.lua +++ b/lib/dblib.lua @@ -302,11 +302,16 @@ _luadb = { delete = _luadb.delete, select = _luadb.select, gselect = _luadb.gselect, + update = _luadb.update, + pinsert = function(...) return pcall(_luadb.insert, ...) end, + pdelete = function(...) return pcall(_luadb.delete, ...) end, + pselect = function(...) return pcall(_luadb.select, ...) end, + pgselect = function(...) return pcall(_luadb.gselect, ...) end, + pupdate = function(...) return pcall(_luadb.update, ...) end, numrows = _luadb.numrows, numfields = _luadb.numfields, nextrow = _luadb.nextrow, count = _luadb.count, - update = _luadb.update, restrict = _luadb.restrict, restricter = _luadb.restricter, empty = _luadb.empty, |