My original post from a few days ago was apparently too vague, because no
one responded, so I'll try to be a bit more concise this time.
I'm trying to use the DBIx::AnyDBD library. From its documentation it is
evident that the library really doesn't do much, since much of the library
is left of to be written by the developer.
I have written pretty much all of the functions that I need but do not know
how to incorporate those functions into the DBIx::AnyDBD Library.
For example I have these functions written which use the DBI library :
$rh_results = &SelectQuery($dbh, $query) ;
$rows_inserted = &InsertQuery($dbh, $query) ;
$rows_affected = &UpdateQuery($dbh, $query) ;
$rows_affected = &DeleteQuery($dbh, $query) ;
Should I place the above type functions in AnyDBD.pm? Default.pm?
I'm pretty sure that db_independent code needs to be placed in Sybase.pm,
Oracle.pm, etc.
I'm new to the idea of OO programming in perl, but I do understand the
concepts. I don't understand what classes have to do with making this
library work and I cant seem to find any examples outside of the perldoc
documentation of DBIx::AnyDBD. I'm looking for an example implementation
that I could either add to or modify.
I am able to open a connection using
&DBIx::AnyDBD->connect("DBI:Sybase:server= ;database=;", $uid, $pwd, {})
but I would like to be able to call my function &OpenDBConnection() which
uses the DBIx:AnyDBD->connect call.
Jeff
------------------------------------------------
Jeff Cervoni, Software Engineer
Vibrant Solutions (formerly Information View)
175 Sully's Trail, Suite 200
Pittsford, NY 14534
(716) 419-7519 Fax: (716) 419-7501