add comparisons file missed in last commit
This commit is contained in:
parent
621ac79f33
commit
58ac6c44b0
76
moto/dynamodb/comparisons.py
Normal file
76
moto/dynamodb/comparisons.py
Normal file
@ -0,0 +1,76 @@
|
||||
COMPARISON_FUNCS = {
|
||||
'EQ': lambda item_value, test_value: item_value == test_value,
|
||||
'GT': lambda item_value, test_value: item_value > test_value
|
||||
}
|
||||
|
||||
|
||||
def get_comparison_func(range_comparison):
|
||||
return COMPARISON_FUNCS.get(range_comparison)
|
||||
|
||||
# class EQ(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class NE(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class LE(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class LT(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class GE(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class GT(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class NULL(ConditionNoArgs):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class NOT_NULL(ConditionNoArgs):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class CONTAINS(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class NOT_CONTAINS(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class BEGINS_WITH(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class IN(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
|
||||
# class BEGINS_WITH(ConditionOneArg):
|
||||
|
||||
# pass
|
||||
|
||||
# class BETWEEN(ConditionTwoArgs):
|
||||
|
||||
# pass
|
Loading…
Reference in New Issue
Block a user