since some minutes ago lib/datalib.php has changed dramatically.
It has been divided in three parts:
* lib/dmllib.php: Where all the select/insert/update... functions will reside (DML functions).
* lib/ddllib.php: Where all the table/field/index creation/drop... functions will reside (DDL functions).
* lib/ddllib.php: Where all the functions not being DML/DDL will remain until they were moved to other libraries/stuff (legacy library).
This radical change is part of the XML database schema thing, coming for Moodle 1.7.
In a few days, some changes will be performed to both the DDL and DML libraries in order to be able to work against some more RDBMS (MSSQL and Oracle are our goals for 1.7. - apart from MySQL and PostgreSQL, of course
You can find more information about the whole thing and all its implications in the above link. At the time of writing this, both points 1 &3 in the Roadmap have been completed and our next objectives are points 4 and 5 in that document.
With them finished, both installation and upgrade of Moodle will be DB-cross-compatible and we'll be able to run against/under
I would recommend you to learn a bit more about the XMLDB thing because, in one week from now, if nothing serious prevents/delays it, the install/upgrade process will be replaced (more or less, think about it as one transition) by the new one that will use, exclusively XMLDB stuff (exactly now we are in the process of detect all the DDL functions we need to create in order to support any DDL operation against each RDBMS).
Any idea/comment/suggestion/discussion will be welcome. Also, any fix/completion/improvement of the Docs would be, for sure, great.
Happy weekend moodlers, we are going to have some really intense weeks from now until 1.7 release. Amazing!
Ciao