Closed ilopmar closed 10 years ago
Everything looks good but I don't like the name "equal" for this operation.
Maybe "contains"? If you read equals you are expecting to pass a JSON.
But with "contains" you should pass a json and with "equals" you check some field in the json against some value.
I don't like neither "contains" nor "equals"
Maybe "hasFieldValue" ?
Watch out that in pg 9.4 there are new operators such as contains, is contained,... Just like arrays.
I like hasFieldValue. I'll change it and do push -f
The operations in 9.4 are for JSONB not for "plain old json" :shit:
Cancelled. Continues in #46
First operator to check if an attribute in a json field is equals to some value.
@Alotor do you like this kind of operators? (notEquals,...)