Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Classes
ddllib.php File Reference

This library includes all the required functions used to handle the DB structure (DDL) independently of the underlying RDBMS in use. More...

Classes

class  ddl_change_structure_exception
 Error during changing db structure. More...
 
class  ddl_dependency_exception
 Error changing db structure, caused by some dependency found like trying to modify one field having related indexes. More...
 
class  ddl_exception
 DDL exception class, use instead of print_error() and "return false;" in ddl code. More...
 
class  ddl_field_missing_exception
 Table does not exist problem exception. More...
 
class  ddl_table_missing_exception
 Table does not exist problem exception. More...
 

Detailed Description

This library includes all the required functions used to handle the DB structure (DDL) independently of the underlying RDBMS in use.

This library includes all the required functions used to handle the DB structure (DDL) independently of the underlying RDBMS in use. All the functions rely on the XMLDBDriver classes to be able to generate the correct SQL syntax needed by each DB.

To define any structure to be created we'll use the schema defined by the XMLDB classes, for tables, fields, indexes, keys and other statements instead of direct handling of SQL sentences.

This library should be used, exclusively, by the installation and upgrade process of Moodle.

For further documentation, visit

@subpackage ddl

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later