Richard Hundt > Oryx > Oryx::Value::String

Download:
Oryx-0.24.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Oryx::Value::String - Values containing short strings

SYNOPSIS ^

  package CMS::Person;

  use base qw( Oryx::Class );

  our $schema = {
      attributes => [ {
          name => 'full_name',
          type => 'String',
      }, {
          name => 'email_address',
          type => 'String',
      } ],
  };

  $x = CMS::Person->create({
      full_name     => 'Richard Hundt',
      email_address => 'richard NO SPAM AT protea-systems.com',
  });

DESCRIPTION ^

This value type stores relatively short strings. Most databases will allow strings to be stored in these fields up to 255 characters in length. There is an optional "size" metadata attribute for this type which can set this to an arbitrary value (defaults to 255).

The value is stored as a "String" primitive type.

SEE ALSO ^

Oryx::Value

AUTHOR ^

Richard Hundt <richard NO SPAM AT protea-systems.com>

COPYRIGHT AND LICENSE ^

This library is free software and may be used under the same terms as Perl itself.

syntax highlighting: