Hi

In my Apache startup.pl i have the following:

use Apache::DBI ();
[...]
Apache::DBI->connect_on_init(
     "DBI:mysql:database=database;host=localhost",
     "user", "password",
     {
      PrintError => 1, # warn() on errors
      RaiseError => 0, # don't die on error
      AutoCommit => 1, # commit executes immediately
    }
    );

(repeat it for any database i want open). 
To get them opened at startup for all Apache Processes.
(There are many mysqld so i think it works).

Now i use in my EmbPerl Sites DBIx::Recordset with
$DBIx::Recordset::FetchsizeWarn = 0;
$dsn = 'DBI:mysql:database:localhost';
$user = "user";
$pass = "password";

And then:
*set = DBIx::Recordset->Select(
        {'!DataSource' => $dsn,
         '!Table'      => 'table',
         '!Username'   => $user,
         '!Password'   => $pass,
         'id_field'        => $order});

(Replace Select with Search, Insert, Update, etc.)

Now my Question: Does this use the Connection via Apache::DBI ?
Does it use the Apache::DBI Connection if i set WriteMode ?


-- 
begin  OjE-ist-scheisse.txt
bye, Joerg
Registered Linux User #97793 @ http://counter.li.org
end

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to