diff options
Diffstat (limited to 'internal/mapr/wherecondition.go')
| -rw-r--r-- | internal/mapr/wherecondition.go | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/internal/mapr/wherecondition.go b/internal/mapr/wherecondition.go index 3ca9103..ff1b489 100644 --- a/internal/mapr/wherecondition.go +++ b/internal/mapr/wherecondition.go @@ -28,40 +28,17 @@ const ( FloatGe QueryOperation = iota ) -type whereType int - -// The possible field types. -const ( - UndefWhereType whereType = iota - Field whereType = iota - String whereType = iota - Float whereType = iota -) - -func (w whereType) String() string { - switch w { - case Field: - return fmt.Sprintf("Field") - case String: - return fmt.Sprintf("String") - case Float: - return fmt.Sprintf("Float") - default: - return fmt.Sprintf("UndefWhereType") - } -} - // Represent a parsed "where" clause, used by mapr.Query type whereCondition struct { + lType fieldType lString string lFloat float64 - lType whereType Operation QueryOperation + rType fieldType rString string rFloat float64 - rType whereType } func (wc *whereCondition) String() string { |
