YapDatabaseSecondaryIndexHandler

@interface YapDatabaseSecondaryIndexHandler : NSObject

The handler block handles extracting the column values for the secondary indexes.

When you add or update rows in the databse the block is invoked. Your block can inspect the row and determine if it contains any values that should be added to the secondary indexes. If not, the block can simply return. Otherwise the block should extract any values and add them to the given dictionary.

After the block returns, the dictionary parameter will be inspected, and any set values will be automatically inserted/updated within the sqlite indexes.

You should choose a block type that takes the minimum number of required parameters. The extension can make various optimizations based on required parameters of the block. For example, if metadata isn’t required, then the extension can ignore metadata-only updates.