如何将 WHERE x LIKE $xyz 添加到查询生成器?
我从
let searchQuery = try? request.query.get(String.self, at: "s")
...
query.where(\Talk.title, SwifQL.like(searchQuery))
但是接下来我要搜索不区分大小写的字符串我有错误:
[ ERROR ] PostgreSQLError.server.error.scanner_yyerror: GET /testroute?s=Swift syntax error at or near "$8" (ErrorMiddleware.swift:26)