phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SV: [phpGroupWare-developers] adodb_lite


From: Sigurd Nes
Subject: SV: [phpGroupWare-developers] adodb_lite
Date: Mon, 19 Mar 2007 14:16:09 +0100 (CET)


> From: Dave Hall address@hidden
> Sent: 2007-03-19 14:01:22 CET
> To: address@hidden
> Subject: RE: [phpGroupWare-developers] adodb_lite
> 
> On Mon, 2007-03-19 at 13:46 +0100, Sigurd Nes wrote:
> > 
> > > From: Dave Hall address@hidden
> > > Sent: 2007-03-19 13:42:24 CET
> > > To: address@hidden
> > > Subject: Re: [phpGroupWare-developers] adodb_lite
> > > 
> > > On Mon, 2007-03-19 at 13:34 +0100, Sigurd Nes wrote:
> > > > "adodb_lite" claims to be 30% faster than "adodb".
> > > > How about adding this as an optional db-abstraction ?
> > > 
> > > What is the difference in terms of functionality ?
> > > 
> > Here is a list of supported/unsupported functions:
> > http://adodblite.sourceforge.net/functions.php
> 
> Thanks :)
> 
> I had a quick look at the list.  There is a couple of functions which I
> like in ADOdb - namely Get{Insert,Update}SQL and Prepare.
> 
> How would the option be implemented?
> 

suggestion:
a selectable variable $GLOBALS['phpgw_info']['server']['db_abstraction'] in 
header.inc.php

the adodb_lite would reside in its one catalog (as /phpgwapi/inc/adodb_lite)

the current class.db.inc.php moved into the catalog and replaced with:

if (empty($GLOBALS['phpgw_info']['server']['db_abstraction']))
{
$GLOBALS['phpgw_info']['server']['db_abstraction'] = 'adodb';
}
/**
* Include concrete database implementation
*/
require_once(PHPGW_API_INC . '/' . 
$GLOBALS['phpgw_info']['server']['db_abstraction'] . '/class.db.inc.php');

I have already tested this (for adodb) - and modified setup and 
header.inc.php.template on my test-server.

Sigurd

reply via email to

[Prev in Thread] Current Thread [Next in Thread]