forked from sourcenetwork/defradb
-
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.
refactor: Trim imported connor package (sourcenetwork#530)
* Remove unused case Could be re-added in some form when adding filters for inline-arrays perhaps * Our filters can never contain these types (always .*64) * We dont support these operators for strings * Make MatchWith private We dont need to worry about this being called outside of this lib * Remove unused Operators func * Reduce connor state I think this simplifies the code futher, feel very free to contradict me. Inits had to be preserved as Golang doesnt seem to treat static functions as constants and complained about an infinate init loop * Simplify condition recursion No need for runtime string matching etc * Simplify operator safety check No need to bother with prefix, so long as it wont panic any unknown operators will be caught on the next few lines. * Use '_' as operator prefix. Allows removal of prefix swap, and (I think) makes the explain results more user friendly. * Remove unused fields sub package * Remove unfriendly test suite stuff * Remove out of date readme * Remove unsupported time checks We will probably add this back in at somepoint, but it is easy to do so and at the moment it is dead code * Remove unsupported contains operator * Replace map, init funcs, and type, with simple switch * Dont bother skipping first rune in switch I wonder if there is a very tiny performance cost to doing this, but I like the removal of the extra code branch and possible error. * Stop looping on eq failure
- Loading branch information
1 parent
fa7917d
commit 4b4ff4f
Showing
28 changed files
with
91 additions
and
813 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.