| 1 | package DBIx::NoSQL::Store::Manager::StoreKey; | ||
| 2 | BEGIN { | ||
| 3 | 2 | ▶ | $DBIx::NoSQL::Store::Manager::StoreKey::AUTHORITY = 'cpan:YANICK'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | } | ||
| 5 | { | ||
| 6 | 2 | $DBIx::NoSQL::Store::Manager::StoreKey::VERSION = '0.2.2'; | |
| 7 | } | ||
| 8 | # ABSTRACT: Marks attributes defining the object's key in the store | ||
| 9 | |||
| 10 | |||
| 11 | 2 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 2 | Moose::Util::meta_attribute_alias('StoreKey'); | |
| 13 | |||
| 14 | 2 | 1; | |
| 15 | |||
| 16 | __END__ | ||
| 17 | |||
| 18 | =pod | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | DBIx::NoSQL::Store::Manager::StoreKey - Marks attributes defining the object's key in the store | ||
| 23 | |||
| 24 | =head1 VERSION | ||
| 25 | |||
| 26 | version 0.2.2 | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | # in a class consuming the DBIx::NoSQL::Store::Manager::Model role | ||
| 31 | |||
| 32 | has my_id => ( | ||
| 33 | traits => [ 'StoreKey' ], | ||
| 34 | is => 'ro', | ||
| 35 | ); | ||
| 36 | |||
| 37 | =head1 DESCRIPTION | ||
| 38 | |||
| 39 | I<DBIx::NoSQL::Store::Manager::StoreKey> (also aliased to I<StoreKey>) | ||
| 40 | is used to mark attributes that will be used as the object id in the | ||
| 41 | L<DBIx::NoSQL::Store::Manager> store. | ||
| 42 | |||
| 43 | If more than one attribute has the | ||
| 44 | trait, the id will be the concatenated values of those attributes. | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | Yanick Champoux <yanick@babyl.dyndns.org> | ||
| 49 | |||
| 50 | =head1 COPYRIGHT AND LICENSE | ||
| 51 | |||
| 52 | This software is copyright (c) 2012 by Yanick Champoux. | ||
| 53 | |||
| 54 | This is free software; you can redistribute it and/or modify it under | ||
| 55 | the same terms as the Perl 5 programming language system itself. | ||
| 56 | |||
| 57 | =cut | ||