blib/lib/UR/DataSource/RDBMS/PkConstraintColumn.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 17 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3  
4 package UR::DataSource::RDBMS::PkConstraintColumn;
5  
6 use UR;
7 our $VERSION = "0.46"; # UR $VERSION;
8  
9 UR::Object::Type->define(
10 class_name => 'UR::DataSource::RDBMS::PkConstraintColumn',
11 is => ['UR::DataSource::RDBMS::Entity'],
12 dsmap => 'dd_pk_constraint_column',
13 er_role => '',
14 id_properties => [qw/data_source table_name column_name rank/],
15 properties => [
16 column_name => { type => 'varchar', len => undef, sql => 'column_name' },
17 data_source => { type => 'varchar', len => undef, sql => 'data_source' },
18 data_source_obj => { type => 'UR::DataSource', id_by => 'data_source'},
19 namespace => { calculate_from => [ 'data_source'],
20 calculate => q( (split(/::/,$data_source))[0] ) },
21 owner => { type => 'varchar', len => undef, is_optional => 1, sql => 'owner' },
22 rank => { type => 'integer', len => undef, sql => 'rank' },
23 table_name => { type => 'varchar', len => undef, sql => 'table_name' },
24 ],
25 data_source => 'UR::DataSource::Meta',
26 );
27  
28 1;
29  
30 =pod
31  
32 =head1 NAME
33  
34 UR::DataSource::RDBMS::PkConstraintColumn - metadata about a data source's primary keys
35  
36 =head1 DESCRIPTION
37  
38 This class represents columns that make up a primary key. Tables with
39 multiple-column primary keys are ordered by their 'rank' property.
40  
41 =cut