Skip to content

Commit

Permalink
feat: change module search from = to LIKE
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Jun 6, 2024
1 parent 92e431b commit 1e8d3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/backend/postgres/queries.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ pub fn module_search(db: pgo.Connection, q: String) {
ON m.package_release_id = r.id
JOIN package p
ON p.id = r.package_id
WHERE m.name = $1
WHERE m.name LIKE '%' || $1 || '%'
ORDER BY package_rank DESC, type_name, signature_kind, module_name, ordering DESC
LIMIT 100"
|> pgo.execute(db, [query], decode_type_search)
Expand Down

0 comments on commit 1e8d3f3

Please sign in to comment.