Main > Programming > Libraries >

DBIx::DBStag 0.08

DBIx::DBStag 0.08

Sponsored Links

DBIx::DBStag 0.08 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.13 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1115
Date added: 2006-10-04
Publisher: Chris Mungall

DBIx::DBStag 0.08 description

DBIx::DBStag is a Perl module for Relational Database to Hierarchical (Stag/XML) Mapping.

SYNOPSIS

use DBIx::DBStag;
my $dbh = DBIx::DBStag->connect("dbi:Pg:dbname=moviedb");
my $sql = q[
SELECT
studio.*,
movie.*,
star.*
FROM
studio NATURAL JOIN
movie NATURAL JOIN
movie_to_star NATURAL JOIN
star
WHERE
movie.genre = sci-fi AND star.lastname = Fisher
USE NESTING
(set(studio(movie(star))))
];
my $dataset = $dbh->selectall_stag($sql);
my @studios = $dataset->get_studio;

# returns nested data that looks like this -
#
# (studio
# (name "20th C Fox")
# (movie
# (name "star wars") (genre "sci-fi")
# (star
# (firstname "Carrie")(lastname "Fisher")))))

# iterate through result tree -
foreach my $studio (@studios) {
printf "STUDIO: %sn", $studio->get_name;
my @movies = $studio->get_movie;

foreach my $movie (@movies) {
printf " MOVIE: %s (genre:%s)n",
$movie->get_name, $movie->get_genre;
my @stars = $movie->get_star;

foreach my $star (@stars) {
printf " STARRING: %s:%sn",
$star->get_firstname, $star->get_lastname;
}
}
}

# manipulate data then store it back in the database
my @allstars = $dataset->get("movie/studio/star");
$_->set_fullname($_->get_firstname. .$_->get_lastname)
foreach(@allstars);

$dbh->storenode($dataset);
exit 0;

Or from the command line:

unix> selectall_xml.pl -d dbi:Pg:dbname=moviebase
SELECT * FROM studio NATURAL JOIN movie NATURAL
JOIN movie_to_star NATURAL JOIN star
USE NESTING (set(studio(movie(star))))

Or using a predefined template:

unix> selectall_xml.pl -d moviebase /mdb-movie genre=sci-fi

DBIx::DBStag 0.08 Screenshot

Advertisements

DBIx::DBStag 0.08 Keywords

Bookmark DBIx::DBStag 0.08

Hyperlink code:
Link for forum:

DBIx::DBStag 0.08 Copyright

WareSeeker periodically updates pricing and software information of DBIx::DBStag 0.08 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 DBIx::DBStag 0.08 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
DBIx::DBStag::Cookbook is a Perl module for building and querying databases from XML. Free Download
DBIx::PDlib is a Perl with DBI SQL abstraction and convenience methods. Free Download
DBIx::SQL::Abstract is a Perl module that provides a convenient abstraction layer to a database. Free Download
DBIx:DataLookup 0.03 is designed as a useful tool which can help you easily both cache records pulled by an SQL statement from a database in the memory as well as look them up later at any time during execution of your script. Free Download
DBIx::XMLMessage is a Perl module for XML Message exchange between DBI data sources. Free Download
DBIx::DBO2::Docs::ToDo are tasks, ideas, and bug reports. Free Download
DBIx::XML_RDB is a Perl extension for creating XML from existing DBI datasources. Free Download
DBIx::DataModel is a Perl module with Classes and UML-style Associations on top of DBI. Free Download