Update the method to connect to the database with lua.

This commit is contained in:
Mark Crane
2013-04-29 23:29:46 +00:00
parent 68fe4b6600
commit 3e790bda07
17 changed files with 46 additions and 17 deletions

View File

@@ -1,5 +1,7 @@
--add the trim function
function trim(s)
return s:gsub("^%s+", ""):gsub("%s+$", "")
if (s) then
return s:gsub("^%s+", ""):gsub("%s+$", "")
end
end