DBIx::NinjaORM::Schema::Table - Store information about a table used by DBIx::NinjaORM.
Version 3.0.1
DBIx::NinjaORM::Schema::Table currently uses DBIx::Inspector to retrieve various information about the tables used. This may however change in the future, so this package encapsulates various functions to make it easier to replace the dependencies and internals later if needed.
use DBIx::NinjaORM::Schema::Table; my $table_schema = DBIx::NinjaORM::Schema::Table->new( dbh => $dbh, name => $name, ); my $column_names = $table_schema->get_column_names();
Create a new DBIx::NinjaORM::Schema::Table object.
my $table_schema = DBIx::NinjaORM::Schema::Table->new( dbh => $dbh, name => $name, );
Arguments:
dbh (mandatory)
The database handle to use to access the table.
name (mandatory)
The name of the table.
Return the table name.
my $table_name = $table_schema->get_name();
Return the database handle associated with the table.
my $dbh = $table_schema->get_dbh();
Return the name of the columns that exist in the underlying table.
my $column_names = $table_schema->get_column_names();
Warning: the API for the internal methods may change in the future. Use or subclass with caution.
Return a cached "DBIx::Inspector object".
my $inspector = $table_schema->get_inspector();
Return the cached DBIx::Inspector::Table object associated with the underlying table.
my $table = $table_schema->get_table();
Return the cached arrayref of DBIx::Inspector::Column objects corresponding to the columns of the underlying table.
my $columns = $table_schema->get_columns();
Please report any bugs or feature requests through the web interface at https://github.com/guillaumeaubert/DBIx-NinjaORM/issues/new. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc DBIx::NinjaORM::Schema::Table
You can also look for information at:
GitHub's request tracker
https://github.com/guillaumeaubert/DBIx-NinjaORM/issues
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/DBIx-NinjaORM
CPAN Ratings
http://cpanratings.perl.org/d/DBIx-NinjaORM
MetaCPAN
https://metacpan.org/release/DBIx-NinjaORM
Guillaume Aubert, <aubertg at cpan.org>.
<aubertg at cpan.org>
Copyright 2009-2013 Guillaume Aubert.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/
To install DBIx::NinjaORM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::NinjaORM
CPAN shell
perl -MCPAN -e shell install DBIx::NinjaORM
For more information on module installation, please visit the detailed CPAN module installation guide.