![]() |
Expression operations.
Enumerations | |
enum | as_exp_read_flags { AS_EXP_READ_DEFAULT = 0 , AS_EXP_READ_EVAL_NO_FAIL = 16 } |
enum | as_exp_write_flags { AS_EXP_WRITE_DEFAULT = 0 , AS_EXP_WRITE_CREATE_ONLY = 1 , AS_EXP_WRITE_UPDATE_ONLY = 2 , AS_EXP_WRITE_ALLOW_DELETE = 4 , AS_EXP_WRITE_POLICY_NO_FAIL = 8 , AS_EXP_WRITE_EVAL_NO_FAIL = 16 } |
Functions | |
AS_EXTERN bool | as_operations_exp_read (as_operations *ops, const char *name, const as_exp *exp, as_exp_read_flags flags) |
AS_EXTERN bool | as_operations_exp_write (as_operations *ops, const char *name, const as_exp *exp, as_exp_write_flags flags) |
enum as_exp_read_flags |
Expression read flags.
Enumerator | |
---|---|
AS_EXP_READ_DEFAULT | Default. |
AS_EXP_READ_EVAL_NO_FAIL | Ignore failures caused by the expression resolving to unknown or a non-bin type. |
Definition at line 86 of file as_exp_operations.h.
enum as_exp_write_flags |
Expression write flags.
Definition at line 42 of file as_exp_operations.h.
AS_EXTERN bool as_operations_exp_read | ( | as_operations * | ops, |
const char * | name, | ||
const as_exp * | exp, | ||
as_exp_read_flags | flags ) |
Create operation that performs a read expression. Requires server version 5.6.0+.
ops | Operations array. |
name | Variable name of read expression result. This name can be used as the bin name when retrieving bin results from the record. |
exp | Expression to evaluate. |
flags | Expression read flags. |
AS_EXTERN bool as_operations_exp_write | ( | as_operations * | ops, |
const char * | name, | ||
const as_exp * | exp, | ||
as_exp_write_flags | flags ) |
Create operation that performs an expression that writes to a record bin. Requires server version 5.6.0+.
ops | Operations array. |
name | Name of bin. |
exp | Expression to evaluate. |
flags | Expression write flags. Multiple flags can be specified via "|" operator. |