Rose::DB::Object::Metadata::UniqueKey

Rose::DB::Object::Metadata::UniqueKey is a Perl module for unique key metadata.
Download

Rose::DB::Object::Metadata::UniqueKey Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • John C. Siracusa
  • Publisher web site:
  • http://search.cpan.org/~jsiracusa/

Rose::DB::Object::Metadata::UniqueKey Tags


Rose::DB::Object::Metadata::UniqueKey Description

Rose::DB::Object::Metadata::UniqueKey is a Perl module for unique key metadata. Rose::DB::Object::Metadata::UniqueKey is a Perl module for unique key metadata.SYNOPSIS use Rose::DB::Object::Metadata::UniqueKey; $uk = Rose::DB::Object::Metadata::UniqueKey->new( columns => ); MyClass->meta->add_unique_key($uk); ...Objects of this class store and manipulate metadata for unique keys in a database table. Each unique key is made up of one or more columns.OBJECT METHODSadd_column This method is an alias for the add_columns method.add_columns Add COLUMNS to the list of columns that make up the unique key. COLUMNS must be a list or reference to an array of column names or Rose::DB::Object::Metadata::Column-derived objects.columns Get or set the list of columns that make up the unique key. COLUMNS must a list or reference to an array of column names or Rose::DB::Object::Metadata::Column-derived objects.This method returns all of the columns that make up the unique key. Each column is a Rose::DB::Object::Metadata::Column-derived column object if the unique key's parent has a column object with the same name, or just the column name otherwise. In scalar context, a reference to an array of columns is returned. In list context, a list is returned.column_namesReturns a list (in list context) or reference to an array (in scalar context) of the names of the columns that make up the unique key.delete_columnsDelete the entire list of columns that make up the unique key.name Get or set the name of the unique key. This name should be unique among all unique keys for a given table. Traditionally, it is the name of the index that the database uses to maintain the unique key, but practices vary. If left undefined, the default value is a string created by joining the column_names with underscores.parent Get or set the Rose::DB::Object::Metadata-derived object that this unique key belongs to. Requirements: · Perl


Rose::DB::Object::Metadata::UniqueKey Related Software