FunSQL.jl icon indicating copy to clipboard operation
FunSQL.jl copied to clipboard

smarter Or

Open clarkevans opened this issue 6 months ago • 1 comments

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

clarkevans avatar Mar 01 '24 03:03 clarkevans