Skip to content

Misc APIs

cross_errMsg

Return error code message

const char*
cross_errMsg (cross_ret ret);

cross_fieldsCreate

Create fields handle

cross_ret   
cross_fieldsCreate (cross_tbl_h hTbl, cross_fields_h *phFlds, const char *FldsStr, uint32_t flags);

Parameters

Arg Type Descritpion
hTbl in Table Handle
phFlds out Fields Handle
FldsStr in Cloumn list seperated by ,
flags [in] Not used

Returns

  • CROSS_OK: Create handle successfully
  • Other: Decode with cross_errMsg

cross_fieldsFree

Free fields handle

void        cross_fieldsFree (cross_fields_h hFlds);

cross_matchCreate

Create match handle

cross_ret   
cross_matchCreate (cross_tbl_h hTbl, cross_match_h *phMatch, const char *MatchStr, uint32_t flags);

Parameters

Arg Type Descritpion
hTbl in Table Handle
phMatch out Match Handle
MatchStr in Match list seperated by ,
flags [in] Not used

Returns

  • CROSS_OK: Create handle successfully
  • Other: Decode with cross_errMsg

Description

  • MatchStr cloumn list seperated by ,, they are AND together. Refer dml.md#cross_dbGetOneRow
    • fld: equal to match dbRow.fld = pMatRow.fld.
    • fld!=: unequal match dbRow.fld != pMatRow.fld.
    • fld>: greater than match dbRow.fld > pMatRow.fld.
    • fld>=: greater than or equal to match dbRow.fld >= pMatRow.fld.
    • fld<: less match dbRow.fld < pMatRow.fld.
    • fld<=: leas than or equal to match dbRow.fld < pMatRow.fld.

cross_matchFree

Free match handle

void        cross_matchFree (cross_match_h hMatch);

Comments