GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::SQLENGINE::SCHEMA::TABLESET (3)

.ds Aq ’

NAME

DBIx::SQLEngine::Schema::TableSet - Array of Schema::Table objects

CONTENTS

SYNOPSIS



  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;



DESCRIPTION

DBIx::SQLEngine::Schema::TableSet objects contain an array of DBIx::SQLEngine::Schema::Table objects.

    Creation

new()


  DBIx::SQLEngine::Schema::TableSet->new( @tables ) : $tableset



Creates a new instance.

    Access to Tables

tables()


  $tableset->tables : @table_objects



Returns a list of tables contained in this set.

call_method_on_tables()


  $tableset->call_method_on_tables( $method, @args ) : @results



Calls the provided method on each of the tables in this set.

    Table Names

table_names()


  $tableset->table_names : @table_names



Returns a list of the names of each of the tables in this set.

table_named()


  $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.

    Schema Definition

create_tables()


  $tableset->create_tables : ()



Calls create_table() on each table in the set.

ensure_tables_exist()


  $tableset->ensure_tables_exist : ()



Calls ensure_table_exists() on each table in the set.

recreate_tables()


  $tableset->recreate_tables : ()



Calls recreate_table_with_rows() on each table in the set.

drop_tables()


  $tableset->drop_tables : ()



Calls drop_table() on each table in the set.

SEE ALSO

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SQLENGINE::SCHEMA::TABLESET (3) 2004-11-13

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.