Rose::DB::Object::Metadata::UniqueKey(3pm) | User Contributed Perl Documentation | Rose::DB::Object::Metadata::UniqueKey(3pm) |
Rose::DB::Object::Metadata::UniqueKey - Unique key metadata.
use Rose::DB::Object::Metadata::UniqueKey; $uk = Rose::DB::Object::Metadata::UniqueKey->new( columns => [ 'name', 'color' ]); 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.
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.
John C. Siracusa (siracusa@gmail.com)
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-10-14 | perl v5.34.0 |