Embedix::DB::Pg - PostgreSQL back-end for Embedix::DB
The API presented here is subject to change. I haven't figured out all the details, yet.
instantiation
$ebx = Embedix::DB::Pg->new ( source => [ 'dbi:Pg:dbname=embedix', $user, $pass, { AutoCommit => 0 } ], );
adding a new distribution
$ebx->addDistro ( arch => 'm68k', # maybe in the future? name => 'uClinux', description => 'Linux for MMU-less architectures', );
selecting a default distro to work on
$ebx->workOnDistro('Embedix 1.2');
updating a distro with information from an ECD
my $ecd = Embedix::ECD->newFromFile('apache.ecd'); $ebx->updateDistro($ecd);
a brief summary of the module written with users in mind.
$edb = Embedix::DB::Pg->new ( backend => 'Pg', source => [ 'dbi:Pg:dbname=embedix', $user, $password ], );
$distro = $edb->addDistro ( name => $string, description => $another_string, );
$distro = $edb->workOnDistro( distro => 'Embedix 1.2', board => 'i386', );
$edb->updateDistro(ecd => $ecd);
$edb->cloneDistro(board => $_) foreach qw(ppc mips m68k sh);
my $cl = $edb->getComponentList;
my $dl = $edb->getDistroList;
error messages
Copyright (c) 2000,2001 John BEPPU. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
John BEPPU <beppu@lineo.com>
To install Embedix::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Embedix::DB
CPAN shell
perl -MCPAN -e shell install Embedix::DB
For more information on module installation, please visit the detailed CPAN module installation guide.