Go to the source code of this file.
◆ grn_caster_cast()
◆ grn_obj_cast()
Cast and append a value from the source bulk/vector to the destination bulk/vector.
If dest is a reference type bulk/vector, add_record_if_not_exist is used. Reference type bulk/vector means that type of dest is a table. If src value doesn't exist in the table that is a type of dest. The src value is added to the table.
- Parameters
-
| ctx | The context object. |
| src | The bulk object containing the value to be casted. |
| dest | The bulk/vector object specifying the target type and where the casted value will be stored. |
| add_record_if_not_exist | If dest is a reference type bulk/vector and the src value doesn't exist in the target table, setting this to true will add the src value to the table. |
- Returns
- GRN_SUCCESS on success, the appropriate grn_rc on error.