logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Attean::API::BulkUpdatableModel - Role representing models that can perform bulk update operations

Author

       Gregory Todd Williams  "<gwilliams@cpan.org>"

Bugs

       Please   report   any   bugs   or   feature   requests   to   through   the   GitHub   web  interface  at
       <https://github.com/kasei/attean/issues>.

Description

       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.

Name

       Attean::API::BulkUpdatableModel - Role representing models that can perform bulk update operations

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.

See Also

Synopsis

         use v5.14;
         use Attean;

Version

       This document describes Attean::API::BulkUpdatableModel version 0.035

See Also