Version: 0.1.0
Authors: Pedro Perez .
amqp_filter is an Erlang library that allows to evaluate SQL-92 predicates in the same way as in Azure Service Bus.
It supports the BNF grammar specified here.
To create the lexer and parser we have used leex and yecc.
amqp_filter:evaluate("ID IN (123, 456, 789)", [{"ID", 456}]). true amqp_filter:evaluate("USERNAME = 'NICK' AND AGE > 18", [{ "USERNAME", "NICK" }, { "AGE", 25 }]). true amqp_filter:evaluate("YEAR % 4 = 0 AND (NOT YEAR % 100 = 0 OR YEAR % 400 = 0)", [{ "YEAR", 2018 }]). false
Generated by EDoc