Skip to content

Commit

Permalink
Update mysql.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
ov-aviril committed May 5, 2022
1 parent 4a6eafe commit 0ff469f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions module/DBify_Library/dep/module/mysql.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,26 @@ local imports = {
type = type,
unpack = unpack,
tostring = tostring,
tonumber = tonumber,
dbConnect = dbConnect,
dbQuery = dbQuery,
dbPoll = dbPoll,
dbExec = dbExec,
table = table
}

string.parse = function(rawString)
if not rawString then return false end
if imports.tostring(rawString) == "nil" then
rawString = nil
elseif imports.tostring(rawString) == "false" then
rawString = false
elseif imports.tostring(rawString) == "true" then
rawString = true
end
return imports.tonumber(rawString) or rawString
end


-----------------------
--[[ Module: MySQL ]]--
Expand Down

0 comments on commit 0ff469f

Please sign in to comment.