-package # hide from PAUSE
+package # hide from PAUSE
DBIx::Class::ResultSourceProxy;
use strict;
sub iterator_class { shift->result_source_instance->resultset_class(@_) }
sub resultset_class { shift->result_source_instance->resultset_class(@_) }
+sub result_class { shift->result_source_instance->result_class(@_) }
+sub source_name { shift->result_source_instance->source_name(@_) }
+sub source_info { shift->result_source_instance->source_info(@_) }
sub resultset_attributes {
shift->result_source_instance->resultset_attributes(@_);
}
}
-sub has_column {
- my ($self, $column) = @_;
- return $self->result_source_instance->has_column($column);
+*add_column = \&add_columns;
+
+sub has_column {
+ shift->result_source_instance->has_column(@_);
+}
+
+sub column_info {
+ shift->result_source_instance->column_info(@_);
+}
+
+sub load_column_info_from_storage {
+ shift->result_source_instance->load_column_info_from_storage;
+}
+
+sub columns {
+ shift->result_source_instance->columns(@_);
+}
+
+sub remove_columns {
+ shift->result_source_instance->remove_columns(@_);
}
-sub column_info {
- my ($self, $column) = @_;
- return $self->result_source_instance->column_info($column);
+*remove_column = \&remove_columns;
+
+sub set_primary_key {
+ shift->result_source_instance->set_primary_key(@_);
}
-
-sub columns {
- return shift->result_source_instance->columns(@_);
-}
-
-sub set_primary_key { shift->result_source_instance->set_primary_key(@_); }
-sub primary_columns { shift->result_source_instance->primary_columns(@_); }
+sub primary_columns {
+ shift->result_source_instance->primary_columns(@_);
+}
-sub add_unique_constraint { shift->result_source_instance->add_unique_constraint(@_); }
-sub unique_constraints { shift->result_source_instance->unique_constraints(@_); }
+sub add_unique_constraint {
+ shift->result_source_instance->add_unique_constraint(@_);
+}
+
+sub unique_constraints {
+ shift->result_source_instance->unique_constraints(@_);
+}
+
+sub unique_constraint_names {
+ shift->result_source_instance->unique_constraint_names(@_);
+}
+
+sub unique_constraint_columns {
+ shift->result_source_instance->unique_constraint_columns(@_);
+}
sub add_relationship {
my ($class, $rel, @rest) = @_;