[development] Extend database abstraction layer, to includetablecreation.

Adrian Rossouw adrian at bryght.com
Sun May 14 15:56:13 UTC 2006


On 14 May 2006, at 5:08 PM, Khalid B wrote:

>
> If we realize that we can no longer optimize for a specific engine
> without losing
> portability,
What's wrong with doing :

db_create_table('blah' // etc.

if ($globals['db_type'] == 'type') {
   // optimise the table for that db type.
}

It's still a lot less code than duplicating every single line of  
every single schema
for every single db type.

When we look at our usage patterns up to now, that ends up being the  
exception and not the rule.

--
Adrian Rossouw
Drupal developer and Bryght Guy
http://drupal.org | http://bryght.com




More information about the development mailing list