Posted by bjaspan on April 16, 2007 at 3:54pm
Welcome to the Database Schema API group. A number of different Drupal developers have independently suggested and/or coded various approaches to abstracting table creation/alteration. The idea finally seems to have reached critical mass and I suggest that we will be best served by combining everyone's efforts on the topic. Hence, this group.
By way of background, here is some recommended reading on the topic:
- May 11, 2006: Adrian, Frando, et al: Extend database abstraction layer, http://drupal.org/node/63049,
- June 9, 2006: bjaspan: Data-driven database tables and updates, http://lists.drupal.org/pipermail/development/2006-June/016893.html
- March 16, 2007: bjaspan: The Schema Project: Database abstraction, reflection, and migration, http://jaspan.com/schema-project-database-abstraction-reflection-and-mig...
- March 28, 2007: dopry, One Approach to DDL abstraction, http://www.darrelopry.com/node/63
- April 13, 2007: Frando, yched, bjaspan, et al: Data models, reflection / abstract table creation, http://drupal.org/node/136171.
- April 16, 2007: bjaspan: Schema module, http://drupal.org/project/schema
Let's begin!
Comments
generalized load/save
This issue is also relevant: Creating a library of CRUD API functions for Drupal
Have such a schema API would enable this in a more meaningful way.
This module I wrote may also be of interest in terms of generalized CRUD: http://drupal.org/project/object_driver
It doesn't actually manipulate any tables (a.l.a. CCK), but uses an abstraction of the schema supplied in another module to be able to load/save to the table, create a default form, default page display, etc.