Function libindy_sys::indy_open_wallet_search[][src]

pub unsafe extern "C" fn indy_open_wallet_search(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    type_: *const c_char,
    query_json: *const c_char,
    options_json: *const c_char,
    cb: indy_handle_cb
) -> indy_error_t

Search for wallet records.

Note instead of immediately returning of fetched records this call returns wallet_search_handle that can be used later to fetch records by small batches (with indy_fetch_wallet_search_next_records).

#Params wallet_handle: wallet handle (created by open_wallet) type_: allows to separate different record types collections query_json: MongoDB style query to wallet record tags: { "tagName": "tagValue", $or: { "tagName2": { $regex: 'pattern' }, "tagName3": { $gte: '123' }, }, } options_json: //TODO: FIXME: Think about replacing by bitmask { retrieveRecords: (optional, true by default) If false only "counts" will be calculated, retrieveTotalCount: (optional, false by default) Calculate total count, retrieveType: (optional, false by default) Retrieve record type, retrieveValue: (optional, true by default) Retrieve record value, retrieveTags: (optional, true by default) Retrieve record tags, } #Returns search_handle: Wallet search handle that can be used later to fetch records by small batches (with indy_fetch_wallet_search_next_records)