Closed clarkevans closed 3 months ago
I find that I have to write the following for Or to be useful.
function build_or(items...) if length(items) == 0 return @funsql(false) end if length(items) == 1 return items[1] end return @funsql(or($items...)) end
That's how it works already, see https://github.com/MechanicalRabbit/FunSQL.jl/blob/master/src/translate.jl#L257-L293. You can write @funsql or(args = items).
@funsql or(args = items)
I find that I have to write the following for Or to be useful.