NAME

DataWarehouse::Fact - a Data Warehouse Fact table

VERSION

Version 0.02

SYNOPSIS

use DataWarehouse::Fact;

my $fact = DataWarehouse::Fact->new(
    dsn       => 'dbi:SQLite:dbname=dw.db',
    name      => 'sales',
    dimension => [ qw/ customer product / ],
);

my $query = $fact->aggr_query(
    \@dimension,
    \@where, 
);

my $sth = $fact->prepare($query);

my $data = $sth->fetchall_arrayref();

DESCRIPTION

DataWarehouse::Fact

AUTHOR

Nelson Ferraz, <nferraz at gmail.com>

BUGS

Please report any bugs or feature requests to bug-dw at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DataWarehouse. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc DataWarehouse::Fact

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2010 Nelson Ferraz.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.