Misc APIs¶
cross_errMsg¶
Return error code message
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 successfullyOther
: Decode with cross_errMsg
cross_fieldsFree¶
Free fields handle
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 successfullyOther
: Decode with cross_errMsg
Description
MatchStr
cloumn list seperated by,
, they areAND
together. Refer dml.md#cross_dbGetOneRowfld
: equal to matchdbRow.fld
=pMatRow.fld
.fld!=
: unequal matchdbRow.fld
!=pMatRow.fld
.fld>
: greater than matchdbRow.fld
>pMatRow.fld
.fld>=
: greater than or equal to matchdbRow.fld
>=pMatRow.fld
.fld<
: less matchdbRow.fld
<pMatRow.fld
.fld<=
: leas than or equal to matchdbRow.fld
<pMatRow.fld
.
cross_matchFree¶
Free match handle