@foreach


Description:

public bool @foreach (CacheDeletedFlag deleted_flag, string? where_clause, CacheForeachFunc func, Cancellable? cancellable = null) throws Error

Calls func for each found object, which satisfies the criteria for both deleted_flag and where_clause .

Note the func should not call any SQLite commands, because it's invoked within a SELECT statement execution.

Parameters:

this

an Cache

deleted_flag

one of CacheDeletedFlag enum

where_clause

an optional SQLite WHERE clause part, or null

func

an CacheForeachFunc function to call for each object

cancellable

optional Cancellable object, or null

user_data

user data for the func

Returns:

Whether succeeded.