1
0
mirror of https://github.com/luapower/mysql.git synced 2025-07-02 00:10:30 +02:00

unimportant

This commit is contained in:
Cosmin Apreutesei
2019-11-07 00:28:01 +02:00
parent f3bd1020b2
commit 1164e0fc20
4 changed files with 16 additions and 14 deletions

View File

@ -1,5 +1,7 @@
--mysql table pretty printing
if not ... then require'mysql_test'; return end
local function ellipsis(s,n)
return #s > n and (s:sub(1,n-3) .. '...') or s
end
@ -132,8 +134,6 @@ local function print_statement(stmt, minsize, print)
print_table(fields, rows, aligns, minsize, print)
end
if not ... then require'mysql_test' end
return {
fit = fit,
format_cell = format_cell,