Attean::API::BulkUpdatableModel3pm
Role representing models that can perform bulk update operations
Usage
use v5.14;use Attean;
Version
This document describes Attean::API::BulkUpdatableModel version 0.035
Overview
This is a Moo role for Attean::API::MutableModels that can perform bulk update operations.
Model-provided mutating methods (e.g. "load_triples", "add_iter", and "add_list") are automatically wrapped in matching "begin_bulk_updates" and "end_bulk_updates" calls.
Read-only model methods (e.g. "get_quads", "get_bindings", "count_quads", "get_graphs", "subject", "predicate", "object", and "graph") are automatically preceded by a "end_bulk_updates" call.
Required methods
Classes consuming this role must provide the following methods:
- "begin_bulk_updates"
-
Indicates that all subsequent updates (until a call to
"end_bulk_updates") should be performed in bulk.
- "end_bulk_updates"
-
Indicates that pending bulk updates should be performed. The model must allow calls to this method, even when no matching call to
"begin_bulk_updates"was made.
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.