summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-06 11:51:18 -0700
committerPixel <pixel@nobis-crew.org>2008-10-06 11:51:18 -0700
commit8d1517ed8c7f253a6efc4d153836159138ed9fac (patch)
treec27260654c8831a3458face8fe836f3fdb05fedd
parent08c24ff362b18132ce2162e8879965327cc5bfce (diff)
Adding protected equivalents of functions
-rw-r--r--lib/dblib.lua7
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,