Main > Free Download Search >

Free dbix software for linux

dbix

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 51
DBIx::OO 0.0.4

DBIx::OO 0.0.4


DBIx::OO is a database to Perl objects abstraction. more>>
DBIx::OO is a database to Perl objects abstraction.

SYNOPSIS

package MyDB;
use base DBIx::OO;

# We need to overwrite get_dbh since its an abstract function.
# The way you connect to the DB is really your job; this function
# should return the database handle. The default get_dbh() croaks.

my $dbh;
sub get_dbh {
$dbh = DBI->connect_cached(dbi:mysql:test, user, passwd)
if !defined $dbh;
return $dbh;
}

package MyDB::Users;
use base MyDB;

__PACKAGE__->table(Users);
__PACKAGE__->columns(P => [ id ],
E => [qw/ first_name last_name email /]);
__PACKAGE__->has_many(pages => MyDB::Pages, user);

package MyDB::Pages;
use base MyDB;

__PACKAGE__->table(Pages);
__PACKAGE__->columns(P => [ id ],
E => [qw/ title content user /]);
__PACKAGE__->has_a(user => MyDB::Users);

package main;

my $u = MyDB::Users->create({ id => userid,
first_name => Q,
last_name => W });

my $foo = MyDB::Users->retrieve(userid);
my @p = @{ $foo->fk_pages };
print "User: ", $foo->first_name, " ", $foo->last_name, " pages:n";
foreach (@p) {
print $_->title, "n";
}

$foo->first_name(John);
$foo->last_name(Doe);
# or
$foo->set(first_name => John, last_name => Doe);
$foo->update;

<<less
Download (0.023MB)
Added: 2007-01-13 License: Perl Artistic License Price:
1014 downloads
DBIx::DWIW 0.44

DBIx::DWIW 0.44


DBIx::DWIW is a Perl module for robust and simple DBI wrapper to Do What I Want (DWIW). more>>
DBIx::DWIW is a Perl module for robust and simple DBI wrapper to Do What I Want (DWIW).

SYNOPSIS

When used directly:
use DBIx::DWIW;

my $db = DBIx::DWIW->Connect(DB => $database,
User => $user,
Pass => $password,
Host => $host);

my @records = $db->Array("select * from foo");
When sub-classed for full functionality:
use MyDBI; # class inherits from DBIx::DWIW

my $db = MyDBI->Connect(somedb) or die;

my @records = $db->Hashes("SELECT * FROM foo ORDER BY bar");

NOTE: This module is currently specific to MySQL, but neednt be. We just havent had a need to talk to any other database server.

DBIx::DWIW was developed (over the course of roughly 1.5 years) in Yahoo! Finance (http://finance.yahoo.com/) to suit our needs. Parts of the API may not make sense and the documentation may be lacking in some areas. Weve been using it for so long (in one form or another) that these may not be readily obvious to us, so feel free to point that out. Theres a reason the version number is currently < 1.0.

This module was recently extracted from Yahoo-specific code, so things may be a little strange yet while we smooth out any bumps and blemishes left over form that.

DBIx::DWIW is intended to be sub-classed. Doing so gives you all the benefits it can provide and the ability to easily customize some of its features. You can, of course, use it directly if it meets your needs as-is. But youll be accepting its default behavior in some cases where it may not be wise to do so.

The DBIx::DWIW distribution comes with a sample sub-class in the file examples/MyDBI.pm which illustrates some of what you might want to do in your own class(es).

This module provides three main benefits:

<<less
Download (0.022MB)
Added: 2006-10-04 License: Perl Artistic License Price:
1115 downloads
DBIx::Frame 1.06

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.

<<less
Download (0.038MB)
Added: 2006-10-04 License: GPL (GNU General Public License) Price:
1115 downloads
DBIx::Password 1.8

DBIx::Password 1.8


DBIx::Password provides an abstraction layer for password maintenance. more>>
DBIx::Password provides an abstraction layer for password maintenance. It is database independent and only overrides the connect method (so it basically behaves as DBI normally does).

You provide a single virtual user name in the connect method and the module determines which database/which user/which password to provide.
<<less
Download (0.005MB)
Added: 2005-08-24 License: GPL (GNU General Public License) Price:
1522 downloads
DBIx::PDlib 1.008

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.

<<less
Download (0.010MB)
Added: 2006-10-04 License: Perl Artistic License Price:
1115 downloads
DBIx::DBStag 0.08

DBIx::DBStag 0.08


DBIx::DBStag is a Perl module for Relational Database to Hierarchical (Stag/XML) Mapping. more>>
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

<<less
Download (0.13MB)
Added: 2006-10-04 License: Perl Artistic License Price:
1115 downloads
DBIx::Wrapper 0.24

DBIx::Wrapper 0.24


DBIx::Wrapper is a Perl module that serves as a wrapper around DBI. more>>
DBIx::Wrapper library is a Perl module that serves as a wrapper around DBI, providing additional functionality and convenience methods.
Enhancements:
- This release adds convenience methods for generating CSV, XML, and bencoded strings from query results.
- The connect_from_config() method was added in version 0.23, allowing database connection parameters to be specified in a file rather than in your code.
<<less
Download (0.027MB)
Added: 2006-03-27 License: Perl Artistic License Price:
1307 downloads
DBIx::Perlish 0.27

DBIx::Perlish 0.27


DBIx::Perlish module provides the ability to work with databases supported by the DBI module. more>>
DBIx::Perlish is a Perl module that provides the ability to work with databases supported by the DBI module using Perls own syntax for four most common operations: SELECT, UPDATE, DELETE, and INSERT.

By using DBIx::Perlish, you can write most of your database queries using a domain-specific language with Perl syntax. Since a Perl programmer knows Perl by definition, and might not know SQL to the same degree, this approach generally leads to a more comprehensible and maintainable code.

The module is not intended to replace 100% of SQL used in your program. There is a hope, however, that it can be used to replace a substantial portion of it.

The DBIx::Perlish module quite intentionally neither implements nor cares about database administration tasks like schema design and management. The plain DBI interface is quite sufficient for that. Similarly, and for the same reason, it does not take care of establishing database connections or handling transactions. All this is outside the scope of this module.

<<less
Download (0.039MB)
Added: 2007-07-12 License: BSD License Price:
834 downloads
DBIx::XML_RDB 0.05

DBIx::XML_RDB 0.05


DBIx::XML_RDB is a Perl extension for creating XML from existing DBI datasources. more>>
DBIx::XML_RDB is a Perl extension for creating XML from existing DBI datasources.

SYNOPSIS

use DBIx::XML_RDB;
my $xmlout = DBIx::XML_RDB->new($datasource,
"ODBC", $userid, $password, $dbname) || die "Failed to make new xmlout";
$xmlout->DoSql("select * from MyTable");
print $xmlout->GetData;

This module is a simple creator of XML data from DBI datasources. It allows you to easily extract data from a database, and manipulate later using XML::Parser.

One use of this module might be (and will be soon from me) to extract data on the web server, and send the raw data (in XML format) to a clients browser, and then use either XML::Parser from PerlScript, or MSXML from VBScript/JavaScript on the clients machine to generate HTML (obviously this relies upon using MS IE for their Active Scripting Engine, and MSXML comes with IE5beta).

Another use is a simple database extraction tool, which is included, called sql2xml. This tool simply dumps a table in a database to an XML file. This can be used in conjunction with xml2sql (part of the XML::DBI(?) package) to transfer databases from one platform or database server to another.

Binary data is encoded using UTF-8. This is automatically decoded when parsing with XML::Parser.

Included with the distribution is a "Scriptlet" - this is basically a Win32 OLE wrapper around this class, allowing you to call this module from any application that supports OLE. To install it, first install the scriptlets download from microsoft at http://msdn.microsoft.com/scripting. Then right-click on XMLDB.sct in explorer and select "Register". Create your object as an instance of "XMLDB.Scriptlet".

<<less
Download (0.007MB)
Added: 2006-09-15 License: Perl Artistic License Price:
1136 downloads
DBIx::Timeout 1.01

DBIx::Timeout 1.01


DBIx::Timeout is a Perl module that provides a safe method of timing out DBI requests. more>>
DBIx::Timeout is a Perl module that provides a safe method of timing out DBI requests.

The method described in the DBI documentation uses unsafe signals, which may cause memory corruption. DBIx::Timeout instead uses a separate timeout process.

The problem with using POSIX sigaction() is that it relies on unsafe signals to work. Unsafe signals are well known to cause instability. For example, imagine your DB client code is in the middle of updating some global state when the signal arrives. That global state could be left in an inconsitent state, just wait for the next time it is needed to cause problems. Since this will likely occur far from the cause, and only ocur rarely, it can be a very difficult problem to track down.

Instead, this module:

- Forks a child process which sleeps for $timeout seconds.
- Runs your long-running query in the parent process.
- If the parent process finishes first it kills the child and returns.
- If the child process wakes up it kills the parents DB thread and exits with a code so the parent knows it was timed out.

NOTE: After this call your database connection may be killed even if no timeout occurred. This is due to a race condition - the child may wake up just as parent process finishes. Patches addressing this bug are welcome. Until this is fixed you should be ready to reconnect after call_with_timeout().

<<less
Download (0.006MB)
Added: 2006-09-22 License: Perl Artistic License Price:
1127 downloads
DBIx::Version 0.01

DBIx::Version 0.01


DBIx::Version is a Perl extension for getting database software name and version. more>>
DBIx::Version is a Perl extension for getting database software name and version.

SYNOPSIS

use DBIx::Version;

my $dbh = DBI->connect( ... );
my ($dbname, $dbver, $dbverfull) = DBIx::Version::Version($dbh);

DBIx::Version lets you query which database software and version you are connected to.

Return Examples:

(undef, undef, undef)
(mysql, 4.0.17, 4.0.17-standard-log)
(postgresql, 7.4.1, PostgreSQL 7.4.1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.2 20031107 (Red Hat Linux 3.3.2-2))
(oracle, 8.1.7.0.0, 8.1.7.0.0)
(sqlserver, 8.00.384, Microsoft SQL Server 2000 - 8.00.384 (Intel X86)
May 23 2001 00:02:52
Copyright (c) 1988-2000 Microsoft Corporation
Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 2))
(sybase,12.5.0.1,Adaptive Server Enterprise/12.5.0.1/SWR 9982 IR/P/Sun_svr4/OS 5.8/rel12501/1776/ 64-bit/FBO/Tue Feb 26 01:22:10 2002)
(sybase,12.5.0.2,Adaptive Server Enterprise/12.5.0.2/EBF 14000 IR/P/Sun_svr4/OS 5.8/rel12502/1776/64-bit/FBO/Tue Jun 4 01:22:10 2002)

Answer 1: This module is useful for cross-platform coding, and in environments like shared hosting where you actually didnt install the database yourself and are curious.

<<less
Download (0.003MB)
Added: 2007-01-11 License: Perl Artistic License Price:
1020 downloads
DBIx::DataLookup 0.03

DBIx::DataLookup 0.03


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. more>> <<less
Added: 2009-07-26 License: Perl Artistic License Price: FREE
downloads
DBIx::Log4perl 0.09

DBIx::Log4perl 0.09


DBIx::Log4perl is a Perl extension for DBI to selectively log SQL, parameters, result-sets, etc. more>>
DBIx::Log4perl is a Perl extension for DBI to selectively log SQL, parameters, result-sets, transactions etc to a Log::Log4perl handle.

SYNOPSIS

use Log::Log4perl;
use DBIx::Log4perl;

Log::Log4perl->init("/etc/mylog.conf");
my $dbh = DBIx::Log4perl->connect(DBI:odbc:mydsn, $user, $pass);
$dbh->DBI_METHOD(args);

or

use DBIx::Log4perl;
my $dbh = DBIX::Log4perl->connect(DBI:odbc:mydsn, $user, $pass
{DBIx_l4p_init => "/etc/mylog.conf",
DBIx_l4p_class => "My::Package");
$dbh->DBI_METHOD(args);

DBIx::Log4perl is a wrapper over DBI which adds logging of your DBI activity via a Log::Log4perl handle. Log::Log4perl has many advantages for logging but the ones probably most attractive are:

The ability to turn logging on or off or change the logging you see without changing your code.
Different log levels allowing you to separate warnings, errors and fatals to different files.

<<less
Download (0.017MB)
Added: 2007-07-31 License: Perl Artistic License Price:
815 downloads
DBIx::MyParse 0.88

DBIx::MyParse 0.88


DBIx::MyParse is a Perl module that provides access to the MySQL SQL parser. more>>
DBIx::MyParse is a Perl module that provides access to the MySQL SQL parser.

<<less
Download (0.084MB)
Added: 2007-07-19 License: Perl Artistic License Price:
827 downloads
DBIx::FetchLoop 0.6

DBIx::FetchLoop 0.6


DBIx::FetchLoop is a Perl module that can fetch with change detection and aggregates. more>>
DBIx::FetchLoop is a Perl module that can fetch with change detection and aggregates.

SYNOPSIS

use DBIx::FetchLoop;

$lph = DBIx::FetchLoop->new($sth, $dbi_method);

$hash_ref = $lph->fetch_current_data;
$rowset = $hash_ref->{previous};
$rowset = $hash_ref->{current};
$rowset = $hash_ref->{next};

$rowset = $lph->fetch_current_row;

$rowset = $lph->previous;
$rowset = $lph->current;
$rowset = $lph->next;

$lph->set_aggregate($new_field, $field);
$lph->reset_aggregate($new_field);

$lph->set_concatenate($new_field, $field);
$lph->reset_concatenate($new_field);

$boolean = $lph->pre_loop($field);
$boolean = $lph->post_loop($field);

$boolean = $lph->pre_loop_substr($field,$offset,$length);
$boolean = $lph->post_loop_substr($field,$offset,$length);

$boolean = $lph->is_first;
$boolean = $lph->is_last;

$count = $lph->count;

DBIx::FetchLoop is a supplemental approach for data retrieval with DBI. Result rows are queued with hash references to previous, current and next rows. Utility functions allow for simplified comparison of a field between previous and current or current and next rows. Additional functions allow you automatically create new fields for aggregating or concatenating based on fields in the resulting dataset.

Note: This module was created with ease of use and performance in mind. This module is intended to eliminate the need for temporary variables for loop detection as well as aggregation and concatenation. The reason that not all DBI methods for data retrieval are not implemented (such as selectall_arrayref) is that the modules design for performance would be defeated.

In essence you can write cleaner looking, more efficient code minus a few hassles.

<<less
Download (0.006MB)
Added: 2006-12-21 License: Perl Artistic License Price:
1037 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 4
  • 1
  • 2
  • 3
  • 4