Main > Programming > Libraries >

Relations::Family 0.94

Relations::Family 0.94

Sponsored Links

Relations::Family 0.94 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.049 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 868
Date added: 2007-06-08

Relations::Family 0.94 description

Relations::Family is a DBI/DBD::mysql Relational Query Engine module.

SYNOPSIS

# DBI, Relations::Family Script that creates some queries.

#!/usr/bin/perl

use DBI;
use Relations::Family;

$dsn = "DBI:mysql:finder";

$username = "root";
$password = ;

$dbh = DBI->connect($dsn,$username,$password,{PrintError => 1, RaiseError => 0});

$abstract = new Relations::Abstract($dbh);

$family = new Relations::Family($abstract);

$family->add_member(-name => account,
-label => Cust. Account,
-database => finder,
-table => account,
-id_field => acc_id,
-query => {-select => {id => acc_id,
label => "concat(cust_name, - ,balance)"},
-from => [account,customer],
-where => "customer.cust_id=account.cust_id",
-order_by => "cust_name"});

$family->add_member(-name => customer,
-label => Customer,
-database => finder,
-table => customer,
-id_field => cust_id,
-query => {-select => {id => cust_id,
label => cust_name},
-from => customer,
-order_by => "cust_name"});

$family->add_member(-name => purchase,
-label => Purchase,
-database => finder,
-table => purchase,
-id_field => pur_id,
-query => {-select => {id => pur_id,
label => "concat(
cust_name,
- ,
date_format(date, %M %D, %Y)
)"},
-from => [purchase,
customer],
-where => customer.cust_id=purchase.cust_id,
-order_by => [date desc,
cust_name]});

$family->add_lineage(-parent_name => customer,
-parent_field => cust_id,
-child_name => purchase,
-child_field => cust_id);

$family->add_rivalry(-brother_name => customer,
-brother_field => cust_id,
-sister_name => account,
-sister_field => cust_id);

$family->set_chosen(-label => Customer,
-ids => 2,4);

$available = $family->get_available(-label => Purchase);

print "Found $available->{count} Purchases:n";

foreach $id (@{$available->{ids_array}}) {

print "Id: $id Label: $available->{labels_hash}->{$id}n";

}

$family->add_value(-name => Cust. Account,
-sql => "concat(cust_name, - ,balance)",
-member_names => customer,account);

$family->add_value(-name => Paid,
-sql => "if(balance > 0,NO,YES)",
-member_names => account);

$family->add_value(-name => Customer,
-sql => cust_name,
-member_names => customer);

$family->add_value(-name => Purchase,
-sql => "concat(
cust_name,
- ,
date_format(date, %M %D, %Y)
)",
-member_names => purchase,customer);

$reunion = $family->get_reunion(-data => Paid,Purchase,
-use_labels => Customer,
-order_by => Customer,Purchase);

$matrix = $abstract->select_matrix(-query => $reunion);

print "Found " . scalar @$matrix . " Values:n";

foreach $row (@$matrix) {

print "Customer: $row->{Customer}n";
print "Purchase: $row->{Purchase}n";
print "Paid: $row->{Paid}nn";

}

$dbh->disconnect();

Relations::Family 0.94 Screenshot

Advertisements

Relations::Family 0.94 Keywords

Bookmark Relations::Family 0.94

Hyperlink code:
Link for forum:

Relations::Family 0.94 Copyright

WareSeeker periodically updates pricing and software information of Relations::Family 0.94 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Relations::Family 0.94 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Relations is a Perl module with functions to use with databases and queries. Free Download
Relations::Display is a DBI/DBD::mysql Query Graphing Perl module. Free Download
Relations::Query is a Perl Object for building queries with DBI/DBD::mysql. Free Download
Dune Legacy is a free clone of Dune2. Free Download
Class::DBI::FormBuilder is a Perl module with Class::DBI/CGI::FormBuilder integration. Free Download
GShare project allows users to easily share files between computers. Free Download
Class::DBI::ConceptSearch is a Perl module to retrieve Class::DBI aggregates from high-level conceptual searches. Free Download
DBD::Informix is a Perl module witj IBM Informix Database Driver for Perl DBI. Free Download