split Schema API and common DB abstraction

hswong3i - December 20, 2007 - 03:54
Project:Drupal
Version:7.x-dev
Component:database system
Category:task
Priority:critical
Assigned:Unassigned
Status:duplicate
Description

(This is a split and lightweight version of http://drupal.org/node/199217)

Schema API is something database-platform dependent, but not PHP DB driver dependent. On the other hand, it seems to be unnecessary complicated to handle 2 section (@ingroup database and @ingroup schemaapi) within single file.

This patch split Schema API into individual schema.xxx.inc files, for a better upgrade and maintenance handling. Just a cut-and-paste handling.

AttachmentSizeStatusTest resultOperations
split_schema_api-0.1.patch59.45 KBIgnoredNoneNone

#1

Pancho - December 21, 2007 - 22:29

Makes a lot of sense. Not yet checked it line by line and/or tested it though.

#2

chx - December 23, 2007 - 09:17
Version:6.x-dev» 7.x-dev

Can't see this happen now. I provided a common.inc and a menu.inc split and Dries said http://drupal.org/node/191448#comment-631812 that we are not splitting inc files in this release. Might be in the next. So, before you reset as you usually do saying that I can't make such decisions, read Dries' saying on this in the linked comment.

#3

hswong3i - December 24, 2007 - 06:09

(This is part of my personal research project Siren's issue.)

#4

hswong3i - February 5, 2008 - 04:54
Priority:normal» critical

Since D7 is now open for public development, and this is the common base for most of the other DB API revamp handling, hope it is now the good timing for review this patch.

Patch reroll via latest CVS HEAD (7.x). Only coming with basic cut & paste handling, plus very minor essential change in db_version() of MySQL. I don't give any other syntax change nor clean up within this patch, so it should able to work as a reference point for further more development.

AttachmentSizeStatusTest resultOperations
split_schema_api-0.2.patch97.25 KBIgnoredNoneNone

#5

hswong3i - February 5, 2008 - 04:57
Title:split Schema API» split Schema API and common DB abstraction

sorry that i merge both splitting of Schema API and common abstraction within this patch. BTW, they are still simple cut & paste handling ;-)

----------------------------------------
What do you hope from my personal blog??

#6

hswong3i - February 5, 2008 - 06:06
Status:needs review» duplicate

I set this issue as duplicated with http://drupal.org/node/199217

 
 

Drupal is a registered trademark of Dries Buytaert.