Main > Programming > Libraries >

DBIx::SQL::Abstract 0.07

DBIx::SQL::Abstract 0.07

Sponsored Links

DBIx::SQL::Abstract 0.07 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.004 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1105
Date added: 2006-10-14
Publisher: Alejandro Juarez

DBIx::SQL::Abstract 0.07 description

DBIx::SQL::Abstract is a Perl module that provides a convenient abstraction layer to a database.

SYNOPSIS

use DBIx::SQL::Abstract;

my $dbh = DBIx::SQL::Abstract->new( %dbcfg );

Building SQL Abstractions.

my($query, @bind) = $dbh->select($table, @fields, %where, @order);
my($query, @bind) = $dbh->insert($table, %fieldvals || @values);
my($query, @bind) = $dbh->update($table, %fieldvals, %where);
my($query, @bind) = $dbh->delete($table, %where);

Using DBI methods

my $sth = $dbh->prepare($query);
$sth->execute(@bind_params);
...
my $rc = $dbh->begin_work;
my $rc = $dbh->commit;
my $rc = $dbh->rollback;
my $rc = $dbh->disconnect;

Anything else DBI method can be used, by Example:

my $err = $dbh->err;
my $err = $dbh->errstr;
my $rv = $dbh->state;
my $rc = $dbh->DESTROY;

The intention of this module is to join some methods from the DBI and the SQL::Abstract modules, for a convenient and easy use.

To begin, we create an object, but first we must create a hash which contains the database parameters as follows.

my %dbcfg = { PrintError => 1,
RaiseError => 0,
AutoCommit => 0,
ChopBlanks => 1
driver => Pg,
dbname => db,
host => undef,
port => undef,
user => user,
passwd => undef
};

Notice that this parameters are set as default unless you set your required values.
my $dbh = DBIx::SQL::Abstract->new( %dbcfg );

This object automatically creates the connection with the database, and gets the methods listed above.

DBIx::SQL::Abstract 0.07 Screenshot

Advertisements

DBIx::SQL::Abstract 0.07 Keywords

Bookmark DBIx::SQL::Abstract 0.07

Hyperlink code:
Link for forum:

DBIx::SQL::Abstract 0.07 Copyright

WareSeeker periodically updates pricing and software information of DBIx::SQL::Abstract 0.07 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::SQL::Abstract 0.07 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 is a Perl module for Relational Database to Hierarchical (Stag/XML) Mapping. Free Download
SQL::Abstract::Limit is a portable LIMIT emulation. Free Download
DBIx::SQLCrosstab Perl module creates a server-side cross tabulation from a database. Free Download
DBIx::EnumConstraints is a Perl module that generates enum-like SQL constraints. Free Download
DBIx::SQLCrosstab::Format is a Perl module with formats results created by DBIx::SQLCrosstab. Free Download
DBIx::DBStag::Cookbook is a Perl module for building and querying databases from XML. Free Download
DBIx::XMLServer is a Perl module to serve data as XML in response to HTTP requests. 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