|
Posted by Javier M Mora (jamarier) on November 29, 2005, 1:15 pm
Please log in for more thread options
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Javier M Mora (jamarier) escribió:
On Tue, 29 Nov 2005 11:35:29 +0000 (UTC), Javier M Mora (jamarier) wrote:
>
> I just start to use Class::DBI::Loader (and Class::DBI)
>
> I'm test their using an example from manual:
>
> use Class::DBI::Loader;
>
> 01 my $loader = Class::DBI::Loader->new(
> 02 dsn => "dbi:SQLite:./cookbook.db",
> 03 namespace => "Data",
> 04 );
> 05 my $class = $loader->find_class('recipes'); # $class => Data::Film
> [...]
>
> In line 05, i get an object about table 'recipes', but i need to know
> the name of table before to use it. How can i know what tables have mi
> database (without look the table's definition ;-)?
>
Ok, i found in Class::DBI::Loader::Generic:
$loader->classes to get classes name created
$loader->tables to get table names of database
- --
Javier Maria Mora Merchan
(GPGP) Key ID: 0x794F3D83
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDjFTfpRHCj3lPPYMRAimFAJ0UhS1YvCd5zQNOCWJ5ouyWCvITiQCcCrP5
NKC98AVOeg5fgkU4yZcXvIM=
=2rC7
-----END PGP SIGNATURE-----
|