forked from mrkamel/search_cop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support providing arbitrary SQL strings
This commit provides a low level extension point in the hash structure to provide a lambda that returns the section of the query that is being asked for. This allows people to query for any DB types or operated that aren't directly supported in SearchCop, and SearchCop doesn't have to support them. It's a pretty low level API in that it expects you to know about what nodes and visitors are, but this seems like a starting point that gets users past being stuck, and could be built on in the future. One of those things that I think could be useful is providing this same structure, but as one of the `options` instead and that would be used every time you query for that said attribute. The downside of the method proposed in this PR is that you have to use the hash parser, and inline your SQL there and every other place you want to use it. Providing it as a default option would allow that. Related to mrkamel#31 and mrkamel#28.
- Loading branch information
1 parent
743e230
commit e6e03ce
Showing
7 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters