开发者

In ClojureQL how can I make a where clause case insensitive?

开发者 https://www.devze.com 2023-03-31 22:56 出处:网络
In ClojureQL how can I make a where clause case insensitive? I am trying to add UPPER or something to do this in the where clause but开发者_如何学Go I can\'t figure out how to do thisIn ClojureQL you

In ClojureQL how can I make a where clause case insensitive? I am trying to add UPPER or something to do this in the where clause but开发者_如何学Go I can't figure out how to do this


In ClojureQL you can call a function like this:

:function/col

So something like this should work according to the documentation:

(select (table :users) (where (= :LOWER/name john)))  
0

精彩评论

暂无评论...
验证码 换一张
取 消