Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature Request: pg_trgm #858
Comments
This comment has been minimized.
|
For non-core modules like these, Diesel is designed to be extended by third party crates. I don't think this makes much sense to be in Diesel proper. Functions can be implemented with the |
sgrif
closed this
Apr 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
quadrupleslap commentedApr 13, 2017
•
edited
What do you want to do and how do you expect Diesel to support you with that?
I want to use the
pg_trgmmodule, in particular thesimilarity,%and<->functions/operators. Diesel should allow the safe construction of queries involving these.How do you think this can be added to Diesel?
This'd hopefully be added with
similarity(text, text) -> realandword_similarity(text, text) -> realfunctions, and two text expression methods(text <-> text) : real(distance) and(text % text) : bool(is similar to), and maybe the other functions described on https://www.postgresql.org/docs/9.1/static/pgtrgm.html to be comprehensive. It might also be a good idea to introduce another feature gate.What are possible alternatives?
Dealing with raw queries, but nobody wants that. :P
Are there any disadvantages?
None that I can think of.