dbi
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 213
DBI 1.57
DBI is a database independent interface for Perl. more>>
DBI is a database independent interface for Perl.
SYNOPSIS
use DBI;
@driver_names = DBI->available_drivers;
%drivers = DBI->installed_drivers;
@data_sources = DBI->data_sources($driver_name, %attr);
$dbh = DBI->connect($data_source, $username, $auth, %attr);
$rv = $dbh->do($statement);
$rv = $dbh->do($statement, %attr);
$rv = $dbh->do($statement, %attr, @bind_values);
$ary_ref = $dbh->selectall_arrayref($statement);
$hash_ref = $dbh->selectall_hashref($statement, $key_field);
$ary_ref = $dbh->selectcol_arrayref($statement);
$ary_ref = $dbh->selectcol_arrayref($statement, %attr);
@row_ary = $dbh->selectrow_array($statement);
$ary_ref = $dbh->selectrow_arrayref($statement);
$hash_ref = $dbh->selectrow_hashref($statement);
$sth = $dbh->prepare($statement);
$sth = $dbh->prepare_cached($statement);
$rc = $sth->bind_param($p_num, $bind_value);
$rc = $sth->bind_param($p_num, $bind_value, $bind_type);
$rc = $sth->bind_param($p_num, $bind_value, %attr);
$rv = $sth->execute;
$rv = $sth->execute(@bind_values);
$rv = $sth->execute_array(%attr, ...);
$rc = $sth->bind_col($col_num, $col_variable);
$rc = $sth->bind_columns(@list_of_refs_to_vars_to_bind);
@row_ary = $sth->fetchrow_array;
$ary_ref = $sth->fetchrow_arrayref;
$hash_ref = $sth->fetchrow_hashref;
$ary_ref = $sth->fetchall_arrayref;
$ary_ref = $sth->fetchall_arrayref( $slice, $max_rows );
$hash_ref = $sth->fetchall_hashref( $key_field );
$rv = $sth->rows;
$rc = $dbh->begin_work;
$rc = $dbh->commit;
$rc = $dbh->rollback;
$quoted_string = $dbh->quote($string);
$rc = $h->err;
$str = $h->errstr;
$rv = $h->state;
$rc = $dbh->disconnect;
<<lessSYNOPSIS
use DBI;
@driver_names = DBI->available_drivers;
%drivers = DBI->installed_drivers;
@data_sources = DBI->data_sources($driver_name, %attr);
$dbh = DBI->connect($data_source, $username, $auth, %attr);
$rv = $dbh->do($statement);
$rv = $dbh->do($statement, %attr);
$rv = $dbh->do($statement, %attr, @bind_values);
$ary_ref = $dbh->selectall_arrayref($statement);
$hash_ref = $dbh->selectall_hashref($statement, $key_field);
$ary_ref = $dbh->selectcol_arrayref($statement);
$ary_ref = $dbh->selectcol_arrayref($statement, %attr);
@row_ary = $dbh->selectrow_array($statement);
$ary_ref = $dbh->selectrow_arrayref($statement);
$hash_ref = $dbh->selectrow_hashref($statement);
$sth = $dbh->prepare($statement);
$sth = $dbh->prepare_cached($statement);
$rc = $sth->bind_param($p_num, $bind_value);
$rc = $sth->bind_param($p_num, $bind_value, $bind_type);
$rc = $sth->bind_param($p_num, $bind_value, %attr);
$rv = $sth->execute;
$rv = $sth->execute(@bind_values);
$rv = $sth->execute_array(%attr, ...);
$rc = $sth->bind_col($col_num, $col_variable);
$rc = $sth->bind_columns(@list_of_refs_to_vars_to_bind);
@row_ary = $sth->fetchrow_array;
$ary_ref = $sth->fetchrow_arrayref;
$hash_ref = $sth->fetchrow_hashref;
$ary_ref = $sth->fetchall_arrayref;
$ary_ref = $sth->fetchall_arrayref( $slice, $max_rows );
$hash_ref = $sth->fetchall_hashref( $key_field );
$rv = $sth->rows;
$rc = $dbh->begin_work;
$rc = $dbh->commit;
$rc = $dbh->rollback;
$quoted_string = $dbh->quote($string);
$rc = $h->err;
$str = $h->errstr;
$rv = $h->state;
$rc = $dbh->disconnect;
Download (0.47MB)
Added: 2007-06-23 License: GPL (GNU General Public License) Price:
523 downloads
DBI::DBD 1.52
DBI::DBD is a Perl DBI Database Driver Writers Guide. more>>
DBI::DBD is a Perl DBI Database Driver Writers Guide.
SYNOPSIS
perldoc DBI::DBD
Version and volatility
This document is still a minimal draft which is in need of further work.
The changes will occur both because the DBI specification is changing and hence the requirements on DBD drivers change, and because feedback from people reading this document will suggest improvements to it.
Please read the DBI documentation first and fully, including the DBI FAQ. Then reread the DBI specification again as youre reading this. Itll help.
This document is a patchwork of contributions from various authors. More contributions (preferably as patches) are very welcome.
This document is primarily intended to help people writing new database drivers for the Perl Database Interface (Perl DBI). It may also help others interested in discovering why the internals of a DBD driver are written the way they are.
This is a guide. Few (if any) of the statements in it are completely authoritative under all possible circumstances. This means you will need to use judgement in applying the guidelines in this document. If in any doubt at all, please do contact the dbi-dev mailing list (details given below) where Tim Bunce and other driver authors can help.
<<lessSYNOPSIS
perldoc DBI::DBD
Version and volatility
This document is still a minimal draft which is in need of further work.
The changes will occur both because the DBI specification is changing and hence the requirements on DBD drivers change, and because feedback from people reading this document will suggest improvements to it.
Please read the DBI documentation first and fully, including the DBI FAQ. Then reread the DBI specification again as youre reading this. Itll help.
This document is a patchwork of contributions from various authors. More contributions (preferably as patches) are very welcome.
This document is primarily intended to help people writing new database drivers for the Perl Database Interface (Perl DBI). It may also help others interested in discovering why the internals of a DBD driver are written the way they are.
This is a guide. Few (if any) of the statements in it are completely authoritative under all possible circumstances. This means you will need to use judgement in applying the guidelines in this document. If in any doubt at all, please do contact the dbi-dev mailing list (details given below) where Tim Bunce and other driver authors can help.
Download (0.40MB)
Added: 2006-09-26 License: Perl Artistic License Price:
1124 downloads
DBI::FAQ 1.52
DBI::FAQ is a Perl module for the Frequently Asked Questions of the Perl5 Database Interface. more>>
DBI::FAQ is a Perl module for the Frequently Asked Questions of the Perl5 Database Interface.
What is DBI, DBperl, Oraperl and *perl?
To quote Tim Bunce, the architect and author of DBI:
``DBI is a database access Application Programming Interface (API)
for the Perl Language. The DBI API Specification defines a set
of functions, variables and conventions that provide a consistent
database interface independant of the actual database being used.
In simple language, the DBI interface allows users to access multiple database types transparently. So, if you connecting to an Oracle, Informix, mSQL, Sybase or whatever database, you dont need to know the underlying mechanics of the 3GL layer. The API defined by DBI will work on all these database types.
A similar benefit is gained by the ability to connect to two different databases of different vendor within the one perl script, ie, I want to read data from an Oracle database and insert it back into an Informix database all within one program. The DBI layer allows you to do this simply and powerfully.
DBperl is the old name for the interface specification. Its usually now used to denote perl4 modules on database interfacing, such as, oraperl, isqlperl, ingperl and so on. These interfaces didnt have a standard API and are generally not supported.
Heres a list of DBperl modules, their corresponding DBI counterparts and support information. Please note, the authors listed here generally do not maintain the DBI module for the same database. These email addresses are unverified and should only be used for queries concerning the perl4 modules listed below. DBI driver queries should be directed to the dbi-users mailing list.
However, some DBI modules have DBperl emulation layers, so, DBD::Oracle comes with an Oraperl emulation layer, which allows you to run legacy oraperl scripts without modification. The emulation layer translates the oraperl API calls into DBI calls and executes them through the DBI switch.
Heres a table of emulation layer information:
Module Emulation Layer Status
------ --------------- ------
DBD::Oracle Oraperl Complete
DBD::Informix Isqlperl Under development
DBD::Ingres Ingperl Complete?
DBD::Sybase Sybperl Working? ( Needs verification )
DBD::mSQL Msqlperl Experimentally released with
DBD::mSQL-0.61
The Msqlperl emulation is a special case. Msqlperl is a perl5 driver for mSQL databases, but does not conform to the DBI Specification. Its use is being deprecated in favour of DBD::mSQL. Msqlperl may be downloaded from CPAN via:
http://www.perl.com/cgi-bin/cpan_mod?module=Msqlperl
<<lessWhat is DBI, DBperl, Oraperl and *perl?
To quote Tim Bunce, the architect and author of DBI:
``DBI is a database access Application Programming Interface (API)
for the Perl Language. The DBI API Specification defines a set
of functions, variables and conventions that provide a consistent
database interface independant of the actual database being used.
In simple language, the DBI interface allows users to access multiple database types transparently. So, if you connecting to an Oracle, Informix, mSQL, Sybase or whatever database, you dont need to know the underlying mechanics of the 3GL layer. The API defined by DBI will work on all these database types.
A similar benefit is gained by the ability to connect to two different databases of different vendor within the one perl script, ie, I want to read data from an Oracle database and insert it back into an Informix database all within one program. The DBI layer allows you to do this simply and powerfully.
DBperl is the old name for the interface specification. Its usually now used to denote perl4 modules on database interfacing, such as, oraperl, isqlperl, ingperl and so on. These interfaces didnt have a standard API and are generally not supported.
Heres a list of DBperl modules, their corresponding DBI counterparts and support information. Please note, the authors listed here generally do not maintain the DBI module for the same database. These email addresses are unverified and should only be used for queries concerning the perl4 modules listed below. DBI driver queries should be directed to the dbi-users mailing list.
However, some DBI modules have DBperl emulation layers, so, DBD::Oracle comes with an Oraperl emulation layer, which allows you to run legacy oraperl scripts without modification. The emulation layer translates the oraperl API calls into DBI calls and executes them through the DBI switch.
Heres a table of emulation layer information:
Module Emulation Layer Status
------ --------------- ------
DBD::Oracle Oraperl Complete
DBD::Informix Isqlperl Under development
DBD::Ingres Ingperl Complete?
DBD::Sybase Sybperl Working? ( Needs verification )
DBD::mSQL Msqlperl Experimentally released with
DBD::mSQL-0.61
The Msqlperl emulation is a special case. Msqlperl is a perl5 driver for mSQL databases, but does not conform to the DBI Specification. Its use is being deprecated in favour of DBD::mSQL. Msqlperl may be downloaded from CPAN via:
http://www.perl.com/cgi-bin/cpan_mod?module=Msqlperl
Download (0.40MB)
Added: 2006-10-04 License: Perl Artistic License Price:
1116 downloads
Oryx::DBI 0.24
Oryx::DBI is a DBI Storage interface for Oryx. more>>
Oryx::DBI is a DBI Storage interface for Oryx.
SYNOPSIS
my $storage = Oryx::DBI->new;
$storage->connect([ dbi:Pg:dbname=mydb, $usname, $passwd]);
$storage->connect([ dbi:Pg:dbname=mydb, $usname, $passwd], $schema);
$storage->dbh;
$storage->db_name;
$storage->ping;
$storage->schema;
$storage->util;
$storage->set_util;
$storage->deploy_class;
$storage->deploy_schema;
DBI Storage interface for Oryx. You should not need to instantiate this directly, use Oryx->connect() instead.
<<lessSYNOPSIS
my $storage = Oryx::DBI->new;
$storage->connect([ dbi:Pg:dbname=mydb, $usname, $passwd]);
$storage->connect([ dbi:Pg:dbname=mydb, $usname, $passwd], $schema);
$storage->dbh;
$storage->db_name;
$storage->ping;
$storage->schema;
$storage->util;
$storage->set_util;
$storage->deploy_class;
$storage->deploy_schema;
DBI Storage interface for Oryx. You should not need to instantiate this directly, use Oryx->connect() instead.
Download (0.060MB)
Added: 2006-10-24 License: Perl Artistic License Price:
1096 downloads
guile-dbi 2.0.0
guile-dbi is a generic database interface for Guile that provides a way to use database drivers that are linked at run-time. more>>
guile-dbi is a database generic interface. The main lib provide a way to use dbds (data base drivers) which are linked at run-time (like perl dbi or php or...).
This provide a very flexible way to use guile scheme implementation for db works. Now, implemented main dbi interface lib, mysql and postgres plugins... In near future more drivers will be available.
Enhancements:
- The API has been upgraded to Guile 1.8.
<<lessThis provide a very flexible way to use guile scheme implementation for db works. Now, implemented main dbi interface lib, mysql and postgres plugins... In near future more drivers will be available.
Enhancements:
- The API has been upgraded to Guile 1.8.
Download (0.38MB)
Added: 2006-09-26 License: GPL (GNU General Public License) Price:
1123 downloads
Bundle::DBI 1.52
Bundle::DBI is a bundle to install DBI and required modules. more>>
Bundle::DBI is a bundle to install DBI and required modules.
SYNOPSIS
perl -MCPAN -e install Bundle::DBI
CONTENTS
DBI - for to get to know thyself
DBI::Shell 11.91 - the DBI command line shell
Storable 2.06 - for DBD::Proxy and DBI::ProxyServer
Net::Daemon 0.37 - for DBD::Proxy and DBI::ProxyServer
RPC::PlServer 0.2016 - for DBD::Proxy and DBI::ProxyServer
DBD::Multiplex 1.19 - treat multiple db handles as one
This bundle includes all the modules used by the Perl Database Interface (DBI) module, created by Tim Bunce.
A Bundle is a module that simply defines a collection of other modules. It is used by the CPAN module to automate the fetching, building and installing of modules from the CPAN ftp archive sites.
This bundle does not deal with the various database drivers (e.g. DBD::Informix, DBD::Oracle etc), most of which require software from sources other than CPAN. Youll need to fetch and build those drivers yourself.
<<lessSYNOPSIS
perl -MCPAN -e install Bundle::DBI
CONTENTS
DBI - for to get to know thyself
DBI::Shell 11.91 - the DBI command line shell
Storable 2.06 - for DBD::Proxy and DBI::ProxyServer
Net::Daemon 0.37 - for DBD::Proxy and DBI::ProxyServer
RPC::PlServer 0.2016 - for DBD::Proxy and DBI::ProxyServer
DBD::Multiplex 1.19 - treat multiple db handles as one
This bundle includes all the modules used by the Perl Database Interface (DBI) module, created by Tim Bunce.
A Bundle is a module that simply defines a collection of other modules. It is used by the CPAN module to automate the fetching, building and installing of modules from the CPAN ftp archive sites.
This bundle does not deal with the various database drivers (e.g. DBD::Informix, DBD::Oracle etc), most of which require software from sources other than CPAN. Youll need to fetch and build those drivers yourself.
Download (0.40MB)
Added: 2006-10-09 License: Perl Artistic License Price:
1110 downloads
dbitotcl 0.14
dbitotcl is a Tcl extension for using Perl DBI (Database independent interface) from tcl. more>>
dbitotcl is a Tcl extension for using Perl DBI (Database independent interface) from tcl. This project allow to use nearly all functions of Perl DBI from Tcl as new Tcl commands. The use of Perl is hidden from the Tcl-User. Perl is loaded as embedded interpreter in the dbitotcl library and the library map all commands between Perl and Tcl.
It is in principle better way to use special Tcl-Extension for your Database (mysqltcl,oratcl,pgtcl,adatcl) but by using this library you can access to database, which have no Tcl-Extension and you have more generic API (like ODBC) and some special functions as Meta-Data (Catalog) access. So you can use very good Perl-DBI interface from Tcl.
<<lessIt is in principle better way to use special Tcl-Extension for your Database (mysqltcl,oratcl,pgtcl,adatcl) but by using this library you can access to database, which have no Tcl-Extension and you have more generic API (like ODBC) and some special functions as Meta-Data (Catalog) access. So you can use very good Perl-DBI interface from Tcl.
Download (0.008MB)
Added: 2006-11-08 License: GPL (GNU General Public License) Price:
1080 downloads
Gtk2::Ex::DBI 2.0
Gtk2::Ex::DBI - Bind a Gtk2::GladeXML can generated window to a DBI data source. more>>
Gtk2::Ex::DBI - Bind a Gtk2::GladeXML can generated window to a DBI data source.
SYNOPSIS
use DBI; use Gtk2 -init; use Gtk2::GladeXML; use Gtk2::Ex::DBI;
my $dbh = DBI->connect ( "dbi:mysql:dbname=sales;host=screamer;port=3306", "some_username", "salespass", { PrintError => 0, RaiseError => 0, AutoCommit => 1, } );
my $prospects_form = Gtk2::GladeXML->new("/path/to/glade/file/my_form.glade", Prospects);
my $data_handler = Gtk2::Ex::DBI->new( { dbh => $dbh, schema => "sales", sql => { select => "*", from => "Prospects", where => "Actve=? and Employees>?", where_values => [ 1, 200 ], order_by => "ClientName", }, form => $prospects, formname => "Prospects", on_current => &Prospects_current, calc_fields => { calc_total => eval { $self->{form}->get_widget("value_1")->get_text + $self->{form}->get_widget("value_2")->get_text } }, default_values => { ContractYears => 5, Fee => 2000 } } );
sub Prospects_current {
# I get called when moving from one record to another ( see on_current key, above )
}
<<lessSYNOPSIS
use DBI; use Gtk2 -init; use Gtk2::GladeXML; use Gtk2::Ex::DBI;
my $dbh = DBI->connect ( "dbi:mysql:dbname=sales;host=screamer;port=3306", "some_username", "salespass", { PrintError => 0, RaiseError => 0, AutoCommit => 1, } );
my $prospects_form = Gtk2::GladeXML->new("/path/to/glade/file/my_form.glade", Prospects);
my $data_handler = Gtk2::Ex::DBI->new( { dbh => $dbh, schema => "sales", sql => { select => "*", from => "Prospects", where => "Actve=? and Employees>?", where_values => [ 1, 200 ], order_by => "ClientName", }, form => $prospects, formname => "Prospects", on_current => &Prospects_current, calc_fields => { calc_total => eval { $self->{form}->get_widget("value_1")->get_text + $self->{form}->get_widget("value_2")->get_text } }, default_values => { ContractYears => 5, Fee => 2000 } } );
sub Prospects_current {
# I get called when moving from one record to another ( see on_current key, above )
}
Download (0.028MB)
Added: 2006-07-19 License: Perl Artistic License Price:
1192 downloads
DBI::Changes 1.58
DBI::Changes Perl module contains a list of significant changes to the DBI. more>>
DBI::Changes Perl module contains a list of significant changes to the DBI.
<<less Download (0.48MB)
Added: 2007-07-26 License: Perl Artistic License Price:
820 downloads
Tao::DBI::st 0.0008
Tao::DBI::st is a Perl module for DBI statements with portable support for named placeholders. more>>
Tao::DBI::st is a Perl module for DBI statements with portable support for named placeholders.
SYNOPSIS
use Tao::DBI qw(dbi_connect dbi_prepare);
$dbh = dbi_connect($args);
$sql = q{UPDATE T set a = :a, b = :b where k = :k};
$stmt = $dbh->prepare($sql);
$rc = $stmt->execute({ k => $k, a => $a, b => $b });
# dbi_prepare() can also be used to create Tao::DBI::st
$stmt = dbi_prepare($sql, { dbh => $dbh });
<<lessSYNOPSIS
use Tao::DBI qw(dbi_connect dbi_prepare);
$dbh = dbi_connect($args);
$sql = q{UPDATE T set a = :a, b = :b where k = :k};
$stmt = $dbh->prepare($sql);
$rc = $stmt->execute({ k => $k, a => $a, b => $b });
# dbi_prepare() can also be used to create Tao::DBI::st
$stmt = dbi_prepare($sql, { dbh => $dbh });
Download (0.008MB)
Added: 2007-08-13 License: Perl Artistic License Price:
802 downloads
Thesaurus::DBI 0.01
Thesaurus::DBI is a Perl module that can store and query synonyms (Thesaurus) in an SQL database. more>>
Thesaurus::DBI is a Perl module that can store and query synonyms (Thesaurus) in an SQL database.
SYNOPSIS
use Thesaurus::DBI;
# create new database connection
my $th = new Thesaurus::DBI(dbhost=> localhost, dbname=>thesaurus,dbuser=>user,dbpassword=>pass);
# use existing database connection
my $th = new Thesaurus::DBI(dbhandle => $dbi, dbname=>thesaurus,dbuser=>user,dbpassword=>pass);
# initialize database
$th->create_tables();
# query thesaurus
my @synonyms = $th->find(synonym);
# add synonyms
$th->add([word, synonym]);
# delete word
$th->delete(word);
This subclass of Thesaurus implements persistence by using an SQL database.
This module requires the DBI module from CPAN. To use it with certain database servers, the corresponding database drivers are needed, too. (Mysql -> DBD::mysql)
Please note, that database servers like MySQL doesnt take care of case-sensitivity. So the queries to the thesaurus-database wil all bei case-insensitive.
<<lessSYNOPSIS
use Thesaurus::DBI;
# create new database connection
my $th = new Thesaurus::DBI(dbhost=> localhost, dbname=>thesaurus,dbuser=>user,dbpassword=>pass);
# use existing database connection
my $th = new Thesaurus::DBI(dbhandle => $dbi, dbname=>thesaurus,dbuser=>user,dbpassword=>pass);
# initialize database
$th->create_tables();
# query thesaurus
my @synonyms = $th->find(synonym);
# add synonyms
$th->add([word, synonym]);
# delete word
$th->delete(word);
This subclass of Thesaurus implements persistence by using an SQL database.
This module requires the DBI module from CPAN. To use it with certain database servers, the corresponding database drivers are needed, too. (Mysql -> DBD::mysql)
Please note, that database servers like MySQL doesnt take care of case-sensitivity. So the queries to the thesaurus-database wil all bei case-insensitive.
Download (0.005MB)
Added: 2007-05-22 License: Perl Artistic License Price:
885 downloads
Persistent::DBI 0.50
Persistent::DBI is an Abstract Persistent Class implemented using a DBI Data Source. more>>
Persistent::DBI is an Abstract Persistent Class implemented using a DBI Data Source.
SYNOPSIS
### we are a subclass of ... ###
use Persistent::DBI;
@ISA = qw(Persistent::DBI);
ABSTRACT
This is an abstract class used by the Persistent framework of classes to implement persistence using DBI data stores. This class provides the methods and interface for implementing Persistent DBI classes. Refer to the Persistent
documentation for a very thorough introduction to using the Persistent
framework of classes.
This class is part of the Persistent DBI package which is available from:
http://www.bigsnow.org/persistent
ftp://ftp.bigsnow.org/pub/persistent
Before we get started describing the methods in detail, it should be noted that all error handling in this class is done with exceptions. So you should wrap an eval block around all of your code. Please see the Persistent documentation for more information on exception handling in Perl.
<<lessSYNOPSIS
### we are a subclass of ... ###
use Persistent::DBI;
@ISA = qw(Persistent::DBI);
ABSTRACT
This is an abstract class used by the Persistent framework of classes to implement persistence using DBI data stores. This class provides the methods and interface for implementing Persistent DBI classes. Refer to the Persistent
documentation for a very thorough introduction to using the Persistent
framework of classes.
This class is part of the Persistent DBI package which is available from:
http://www.bigsnow.org/persistent
ftp://ftp.bigsnow.org/pub/persistent
Before we get started describing the methods in detail, it should be noted that all error handling in this class is done with exceptions. So you should wrap an eval block around all of your code. Please see the Persistent documentation for more information on exception handling in Perl.
Download (0.010MB)
Added: 2007-05-19 License: Perl Artistic License Price:
889 downloads
DBI::ProfileData 1.58
DBI::ProfileData can manipulate DBI::ProfileDumper data dumps. more>>
DBI::ProfileData can manipulate DBI::ProfileDumper data dumps.
SYNOPSIS
The easiest way to use this module is through the dbiprof frontend (see dbiprof for details):
dbiprof --number 15 --sort count
This module can also be used to roll your own profile analysis:
# load data from dbi.prof
$prof = DBI::ProfileData->new(File => "dbi.prof");
# get a count of the records (unique paths) in the data set
$count = $prof->count();
# sort by longest overall time
$prof->sort(field => "longest");
# sort by longest overall time, least to greatest
$prof->sort(field => "longest", reverse => 1);
# exclude records with key2 eq disconnect
$prof->exclude(key2 => disconnect);
# exclude records with key1 matching /^UPDATE/i
$prof->exclude(key1 => qr/^UPDATE/i);
# remove all records except those where key1 matches /^SELECT/i
$prof->match(key1 => qr/^SELECT/i);
# produce a formatted report with the given number of items
$report = $prof->report(number => 10);
# clone the profile data set
$clone = $prof->clone();
# get access to hash of header values
$header = $prof->header();
# get access to sorted array of nodes
$nodes = $prof->nodes();
# format a single node in the same style as report()
$text = $prof->format($nodes->[0]);
# get access to Data hash in DBI::Profile format
$Data = $prof->Data();
<<lessSYNOPSIS
The easiest way to use this module is through the dbiprof frontend (see dbiprof for details):
dbiprof --number 15 --sort count
This module can also be used to roll your own profile analysis:
# load data from dbi.prof
$prof = DBI::ProfileData->new(File => "dbi.prof");
# get a count of the records (unique paths) in the data set
$count = $prof->count();
# sort by longest overall time
$prof->sort(field => "longest");
# sort by longest overall time, least to greatest
$prof->sort(field => "longest", reverse => 1);
# exclude records with key2 eq disconnect
$prof->exclude(key2 => disconnect);
# exclude records with key1 matching /^UPDATE/i
$prof->exclude(key1 => qr/^UPDATE/i);
# remove all records except those where key1 matches /^SELECT/i
$prof->match(key1 => qr/^SELECT/i);
# produce a formatted report with the given number of items
$report = $prof->report(number => 10);
# clone the profile data set
$clone = $prof->clone();
# get access to hash of header values
$header = $prof->header();
# get access to sorted array of nodes
$nodes = $prof->nodes();
# format a single node in the same style as report()
$text = $prof->format($nodes->[0]);
# get access to Data hash in DBI::Profile format
$Data = $prof->Data();
Download (0.48MB)
Added: 2007-08-09 License: Perl Artistic License Price:
806 downloads
DBIx::Frame 1.06
DBIx::Frame is a Perl module for creating and maintaining DBI frameworks. more>>
DBIx::Frame is a Perl module for creating and maintaining DBI frameworks.
SYNOPSIS
use DBIx::Frame;
DBIx::Frame->init(server, dbtype) || exit(0);
my $DB = DBIx::Frame->new(database, user, pass)
or die("Couldnt connect to database: ", DBI->errstr);
See below for how to actually use this object.
DBIx::Frame is an extension of the standard DBI perl module, designed around mysql, and used to create and maintain frameworks for databases. It has query logging, and a standardized interface for standard SQL statements like update and insert that doesnt require understanding SQL to any great degree.
Ideally, the user or developer shouldnt have to know too much SQL to be able to administer a database. On the other hand, it does require a certain setup that isnt necessarily easy to pick up, and isnt standard SQL - with all the problems that this entails.
Database design is discussed below.
<<lessSYNOPSIS
use DBIx::Frame;
DBIx::Frame->init(server, dbtype) || exit(0);
my $DB = DBIx::Frame->new(database, user, pass)
or die("Couldnt connect to database: ", DBI->errstr);
See below for how to actually use this object.
DBIx::Frame is an extension of the standard DBI perl module, designed around mysql, and used to create and maintain frameworks for databases. It has query logging, and a standardized interface for standard SQL statements like update and insert that doesnt require understanding SQL to any great degree.
Ideally, the user or developer shouldnt have to know too much SQL to be able to administer a database. On the other hand, it does require a certain setup that isnt necessarily easy to pick up, and isnt standard SQL - with all the problems that this entails.
Database design is discussed below.
Download (0.038MB)
Added: 2006-10-04 License: GPL (GNU General Public License) Price:
1115 downloads
DBIx::PDlib 1.008
DBIx::PDlib is a Perl with DBI SQL abstraction and convenience methods. more>>
DBIx::PDlib is a Perl with DBI SQL abstraction and convenience methods.
SYNOPSIS
use DBIx::PDlib;
my $db = DBIx::PDlib->connect({
driver => mydriver,
host => myhost.com,
dbname => mydb,
user => myuser,
password => mypassword,
});
my ($name) = $db->select(name,table1,"id = 10");
my $dbi_sth = $db->iterated_select(name,table1,
"id > 2",ORDER BY name);
while (my ($name) = $dbi_sth->fetchrow_array) { ...do stuff... }
my $rv = $db->insert(table1,[id,name],[11,Bob]);
my $rv = $db->update(table1,[name],[Bob Jr.],"id = 11");
my $rv = $db->delete(table1,"id = 11");
my @quoted = $db->quote( "something", $foo, $bar, @moredata );
my $rv = $db->raw_query("CREATE TABLE table1 (id int, name char)");
if ($db->connected) { ...were connected... }
$db->disconnect;
ABSTRACT
DBIx::PDlib provides a simplified way to interact with DBI. It provides methods for SELECT, INSERT, UPDATE, and DELETE which result in having to type less code to do the DBI queries. It does as little as possible to make things easier.
What it doesnt do... It isnt trying to replace DBI. Its not trying to completely abstract SQL statement building into some 100% perllike syntax (though that is REALLY cool, and what I liked about DBIx::Abstract), but it does abstract it some.
<<lessSYNOPSIS
use DBIx::PDlib;
my $db = DBIx::PDlib->connect({
driver => mydriver,
host => myhost.com,
dbname => mydb,
user => myuser,
password => mypassword,
});
my ($name) = $db->select(name,table1,"id = 10");
my $dbi_sth = $db->iterated_select(name,table1,
"id > 2",ORDER BY name);
while (my ($name) = $dbi_sth->fetchrow_array) { ...do stuff... }
my $rv = $db->insert(table1,[id,name],[11,Bob]);
my $rv = $db->update(table1,[name],[Bob Jr.],"id = 11");
my $rv = $db->delete(table1,"id = 11");
my @quoted = $db->quote( "something", $foo, $bar, @moredata );
my $rv = $db->raw_query("CREATE TABLE table1 (id int, name char)");
if ($db->connected) { ...were connected... }
$db->disconnect;
ABSTRACT
DBIx::PDlib provides a simplified way to interact with DBI. It provides methods for SELECT, INSERT, UPDATE, and DELETE which result in having to type less code to do the DBI queries. It does as little as possible to make things easier.
What it doesnt do... It isnt trying to replace DBI. Its not trying to completely abstract SQL statement building into some 100% perllike syntax (though that is REALLY cool, and what I liked about DBIx::Abstract), but it does abstract it some.
Download (0.010MB)
Added: 2006-10-04 License: Perl Artistic License Price:
1115 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above dbi search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed