[PATCH] feat(rpc): return "providers" packages when querying by `name` or `name-desc`

Lukas Fleischer lfleischer at archlinux.org
Thu Mar 29 05:23:03 UTC 2018

On Wed, 21 Mar 2018 at 09:10:10, 尤立宇 wrote:
> [...]
> To support multiple "by" arguments, I came up with this, assuming by=by1&by=by2
> search: any by fields contain the argument
> WHERE (Packages.By1 LILKE $keyword_string OR Packages.By2 LIKE $keyword_string)
> info: any by fields equals one of the argument
> WHERE (Packages.By1 IN ($names_value) OR Packages.By2 IN ($names_value)
> I think this way more fields can be easily supported.
> With this in mind,
> search by=name-desc would become by=name&by=desc
> search by=maintainer would become info by=maintainer.
> Does this make sense to you?
> [...]

Yes, sounds reasonable. Note that we still need to support the old
implementation and should probably create a new version of the RPC API.


More information about the aur-dev mailing list