SQL LIKE operator in datomic
问题 I want to run a sql query, that given a search keyword, will find all users, where their name matches that pattern. i.e in raw SQL something like WHERE users.name LIKE "%foo%" How owuld I go about doing that? Current structure of query -> (defn find-users [db, search] (->> (d/q '[:find ?u :where [?u :user/uuid ?id] [?u :user/name ..] db) (map first))) 回答1: This is what I use. Maybe you can adapt it to your needs. (defn find-items "Full text search titles and descriptions for [search-term]"