1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/mysql-proxy/code.lua

8 lines
167 B
Lua
Raw Normal View History

2016-05-09 15:28:47 +00:00
io.stdout:setvbuf 'no'
2016-05-09 13:33:08 +00:00
function read_query(packet)
if packet:byte() == proxy.COM_QUERY then
print("we got a normal query: " .. packet:sub(2))
end
end