Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Embedix::DB::Pg
PostgreSQL back-end for Embedix::DB

Embedix::DB::Pg - PostgreSQL back-end for Embedix::DB


NAME

Embedix::DB::Pg - PostgreSQL back-end for Embedix::DB


SYNOPSIS

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);


REQUIRES

Embedix::ECD
DBI
DBD::Pg


DESCRIPTION

a brief summary of the module written with users in mind.


METHODS

Constructor

new(backend => ..., source => [ ... ])

    $edb = Embedix::DB::Pg->new (

        backend => 'Pg',

        source  => [ 'dbi:Pg:dbname=embedix', $user, $password ],

    );

Administration Methods

addDistro( name => ..., description => ...)

    $distro = $edb->addDistro (

        name        => $string,

        description => $another_string,

    );
workOnDistro('name of distribution')

    $distro = $edb->workOnDistro(

        distro => 'Embedix 1.2',

        board  => 'i386',

    );
updateDistro(ecd => $ecd, parent_id => $id)

    $edb->updateDistro(ecd => $ecd);
cloneDistro(board => ...);

    $edb->cloneDistro(board => $_) foreach qw(ppc mips m68k sh);

Client Methods

getComponentList

    my $cl = $edb->getComponentList;
getDistroList

    my $dl = $edb->getDistroList;


DIAGNOSTICS

error messages


COPYRIGHT

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.


AUTHOR

John BEPPU <beppu@lineo.com>


SEE ALSO

related perl modules
the latest version
Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy