DBIx::SQLEngine::Schema::TableSet - Array of Schema::Table objects
use DBIx::SQLEngine::Schema::TableSet; my $tables = DBIx::SQLEngine::Schema::TableSet->new( $table1, $table2 ); print $tables->count; foreach my $table ( $tables->tables ) { print $table->name; } $table = $tables->table_named( $name ); $ts->create_tables;
DBIx::SQLEngine::Schema::TableSet objects contain an array of DBIx::SQLEngine::Schema::Table objects.
DBIx::SQLEngine::Schema::TableSet->new( @tables ) : $tableset
Creates a new instance.
$tableset->tables : @table_objects
Returns a list of tables contained in this set.
$tableset->call_method_on_tables( $method, @args ) : @results
Calls the provided method on each of the tables in this set.
$tableset->table_names : @table_names
Returns a list of the names of each of the tables in this set.
$tableset->table_named( $table_name ); : $table_object
Searches through the tables in the set until it finds one with the given name. Throws an exception if none are found.
$tableset->create_tables : ()
Calls create_table() on each table in the set.
$tableset->ensure_tables_exist : ()
Calls ensure_table_exists() on each table in the set.
$tableset->recreate_tables : ()
Calls recreate_table_with_rows() on each table in the set.
$tableset->drop_tables : ()
Calls drop_table() on each table in the set.
See DBIx::SQLEngine for the overall interface and developer documentation.
See DBIx::SQLEngine::Docs::ReadMe for general information about this distribution, including installation and license information.
To install DBIx::SQLEngine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::SQLEngine
CPAN shell
perl -MCPAN -e shell install DBIx::SQLEngine
For more information on module installation, please visit the detailed CPAN module installation guide.