The experimental Luafilter would benefit from additional utility functions that would make interaction with MaxScale easier. Various SQL processing functions that are usable from the Lua script could be created.
- Functions to parse the plain text query into fields, tables and values
- Communication with MaxScale (reading server states etc.)
- Adding routing hints to queries
- Altering the content of the query