-
Notifications
You must be signed in to change notification settings - Fork 109
Suggest similar table/column/indexes names on missing errors #685
Conversation
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
First of all I thought we won't pull any new dependencies. Distance function is just a one simple function. For instance here is sift4 (less general, but should be faster than Levenstein):
The second thought I had is |
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
@kuba-- you're right, as we spoke on Slack, this could be a pretty shallow dependency, used a simplified and working on strings version of the Levenshtein function instead. |
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
@kuba-- also implemented your other suggestion of returning 0 to many results depending on the distance. |
Looks like the Mono test in the CI matrix is failing for some missing package in some repository. |
Ah, yes, the C# thing. Ignore it and don't worry. |
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
Fixes #684
Signed-off-by: Juanjo Alvarez juanjo@sourced.tech