CacheUpdateFunc


Description:

[ CCode ( instance_pos = 11.9 ) ]
[ Version ( since = "3.26" ) ]
public delegate bool CacheUpdateFunc (Cache cache, string uid, string revision, string object, OfflineState offline_state, string[] column_names, string[] column_values, out string out_revision, out string out_object, out OfflineState out_offline_state, out CacheColumnValues out_other_columns)

A callback called for each object row when using foreach_update function.

When all out parameters are left untouched, then the row is not changed.

Parameters:

cache

an Cache

uid

a unique object identifier

revision

the object revision

object

the object itself

offline_state

objects offline state, one of OfflineState

column_names

column names

column_values

column values

out_revision

the new object revision to set; keep it untouched to not change

out_object

the new object to set; keep it untouched to not change

out_offline_state

the offline state to set; the default is the same as offline_state

out_other_columns

an CacheColumnValues with other columns to set; keep it untouched to not change any

ncols

count of columns, items in column_names and column_values

user_data

user data, as used in foreach_update

Returns:

true to continue, false to stop walk through.


Namespace: E
Package: libebackend-1.2