Jerome Quelin > Module-Packaged-Generator-1.111930 > Module::Packaged::Generator::DB

Download:
Module-Packaged-Generator-1.111930.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.111930   Source  

NAME ^

Module::Packaged::Generator::DB - database encapsulation

VERSION ^

version 1.111930

DESCRIPTION ^

This module encapsulates database creation, insertion and stuff like this.

ATTRIBUTES ^

file

The path to the sqlite database file (a string). Required.

METHODS ^

create

    $db->create;

Force database creation.

insert_module

    $db->insert_module( $module );

Insert $module (a Module::Packaged::Generator::Module object) in the database.

create_indices

    $db->create_indices;

Create indices on the various columns of the module table to make it faster.

close

    $db->close;

Close database and move it to its final location.

AUTHOR ^

Jerome Quelin

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2010 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: