NAME

DBIx::NoSQL::Store::Manager::StoreKey - Marks attributes defining the object's key in the store

VERSION

version 1.0.0

SYNOPSIS

# in a class consuming the DBIx::NoSQL::Store::Manager::Model role

has my_id => (
    traits => [ 'StoreKey' ],
    is => 'ro',
);

DESCRIPTION

DBIx::NoSQL::Store::Manager::StoreKey (also aliased to StoreKey) is used to mark attributes that will be used as the object id in the DBIx::NoSQL::Store::Manager store.

If more than one attribute has the trait, the id will be the concatenated values of those attributes.

AUTHOR

Yanick Champoux <yanick@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018, 2013, 2012 by Yanick Champoux.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.