endurox.Bboolev¶
- endurox.Bboolev(fbfr: object, expression: str) bool ¶
Evaluate Boolean expression on given UBF buffer.
Bboolev example¶import endurox print(endurox.Bboolev({"data":{"T_STRING_FLD":"ABC"}}, "T_STRING_FLD=='ABC'")) # will print True
For more details see Bboolev(3) C API call.
- Raises:
UbfException –
Following error codes may be present:BALIGNERR
- Corrupted UBF buffer.BNOTFLD
- Invalid ATMI buffer format, not UBF.BEINVAL
- Invalid arguments passed.BBADNAME
- Field not found in FD files or UBFDB.BSYNTAX
- Bad boolean expression syntaxBFTOPEN
- Unable to open field tables.BEBADOP
- Operation not supported on given field types.- Parameters:
- Returns:
ret – Result true (matches) or false (buffer not matches expression).
- Return type: