dbTalk Databases Forums  

Ingres-specific Handle object for perl DBIx

comp.databases.ingres comp.databases.ingres


Discuss Ingres-specific Handle object for perl DBIx in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roy Hann
 
Posts: n/a

Default Ingres-specific Handle object for perl DBIx - 01-22-2010 , 06:18 AM






Has anyone out there done any work on an Ingres-specific Handle object
for perl DBIx?

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing list.

Reply With Quote
  #2  
Old   
Chris
 
Posts: n/a

Default Re: Ingres-specific Handle object for perl DBIx - 01-25-2010 , 02:52 PM






On Jan 22, 3:18*am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:
Quote:
Has anyone out there done any work on an Ingres-specific Handle object
for perl DBIx?
Roy,

It sounds like you want a DBD driver, is that what you are looking
for?

Try http://community.ingres.com/wiki/Perl_DBI as a starting point.
There are two options on that page.

I would be tempted to take the ODBC option; if you are on Windows this
comes as part of the install. If you are on a Linux distro you can get
prebuilt binaries.

Regards,

Chris

Reply With Quote
  #3  
Old   
Roy Hann
 
Posts: n/a

Default Re: Ingres-specific Handle object for perl DBIx - 01-25-2010 , 04:45 PM



Chris wrote:

Quote:
On Jan 22, 3:18*am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:
Has anyone out there done any work on an Ingres-specific Handle object
for perl DBIx?

Roy,

It sounds like you want a DBD driver, is that what you are looking
for?

Try http://community.ingres.com/wiki/Perl_DBI as a starting point.
There are two options on that page.

I would be tempted to take the ODBC option; if you are on Windows this
comes as part of the install. If you are on a Linux distro you can get
prebuilt binaries.
Thanks Chris.

As you probably know, DBIx is supposed to be an application development
layer that is claimed to provide a higher level of abstraction than
DBI, and sits on top of DBI.

Unfortunately the package that I am trying to coax into life was written
using DBIx, so I am stuck with it.

The ODBC option is my Plan B. It would be nice to get DBIx working
natively with Ingres though, for aesthetic and propaganda reasons if for
no other.

Since I posted this question Grant Croker has pointed me to Keith
Bolam's work on DBIx for Ingres. I shall encourage Keith to brag about
his victory here, once it is fully working.

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing list.

Reply With Quote
  #4  
Old   
jimmythegeek44720@yahoo.com
 
Posts: n/a

Default Re: Ingres-specific Handle object for perl DBIx - 01-29-2010 , 08:17 AM



On Jan 22, 6:18*am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:
Quote:
Has anyone out there done any work on an Ingres-specific Handle object
for perl DBIx?

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go tohttp://www.iua.org.uk/jointo get on the mailing list.
Here's simple connect perl script for your imadb. Love perl - works
great with Ingres. Run our scripts on a Solaris box:

use
strict;
use
DBI;

my $dbh = DBI->connect('dbi:Ingres:imadb') || die "Database connection
not made:

$DBI::errstr";

print "Connected!\n
\n";

print
"Disconnecting ...";
$dbh->disconnect
();
print "Done\n
\n";

Reply With Quote
  #5  
Old   
Roy Hann
 
Posts: n/a

Default Re: Ingres-specific Handle object for perl DBIx - 01-29-2010 , 09:06 AM



jimmythegeek44720 (AT) yahoo (DOT) com wrote:

Quote:
On Jan 22, 6:18*am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:
Has anyone out there done any work on an Ingres-specific Handle object
for perl DBIx?

Here's simple connect perl script for your imadb. Love perl - works
great with Ingres. Run our scripts on a Solaris box:

use
strict;
use
DBI;

my $dbh = DBI->connect('dbi:Ingres:imadb') || die "Database connection
not made:

$DBI::errstr";

print "Connected!\n
\n";

print
"Disconnecting ...";
$dbh->disconnect
();
print "Done\n
\n";
Thanks Jimmy.

I must apologise for not having made it clearer that I was asking about
DBIx (with an "x" on the end), not DBI. However I do have an answer
now, thanks to Grant Croker and Keith Bolam.

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing list.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.