Function aerospike::expressions::lists::get_by_value
source · pub fn get_by_value(
return_type: ListReturnType,
value: FilterExpression,
bin: FilterExpression,
ctx: &[CdtContext]
) -> FilterExpression
Expand description
Create expression that selects list items identified by value and returns selected data specified by returnType.
// List bin "a" contains at least one item == "abc"
use aerospike::expressions::{gt, string_val, list_bin, int_val};
use aerospike::operations::lists::ListReturnType;
use aerospike::expressions::lists::get_by_value;
gt(
get_by_value(ListReturnType::Count, string_val("abc".to_string()), list_bin("a".to_string()), &[]),
int_val(0));