08-20-2015, 01:04 AM
As for the display part of that function, it's okay for now, but not good for larger projects, you should get into the habit of using table.concat to concatenate multiple strings (100+ strings) together. Best code:
local out = {} local n = 1 for row in LOG_DB:nrows(...) do out[n] = row.date .. " | " .. row.login .. " | " .. row.message n = n + 1 end return true, table.concat(out, "\n")