I'm trying to write a custom SQLite function that takes two args and run with Apache Cayenne's performQuery()
which looks something like:
String query = "SELECT * FROM TABLE WHERE MYFUNC(arg1, arg2) <= SOME_VALUE"
ObjectContext ctx = ...
ctx.performQuery(query)
I tried using org.sqlite.Function.create()
, but it failed since my connection is wrapped by Cayenne.