Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Classes | Functions | Variables
dmllib.php File Reference

This library contains all the Data Manipulation Language (DML) functions used to interact with the DB. More...

Classes

class  dml_connection_exception
 
class  dml_exception
 
class  dml_missing_record_exception
 
class  dml_multiple_records_exception
 
class  dml_read_exception
 
class  dml_sessionwait_exception
 
class  dml_transaction_exception
 
class  dml_write_exception
 

Functions

stdClass setup_DB ()
 Sets up global $DB moodle_database instance. More...
 

Variables

const IGNORE_MISSING 0
 Return false if record not found, show debug warning if multiple records found.
 
const IGNORE_MULTIPLE 1
 Similar to IGNORE_MISSING but does not show debug warning if multiple records found, not recommended to be used.
 
const MUST_EXIST 2
 Indicates exactly one record must exist.
 

Detailed Description

This library contains all the Data Manipulation Language (DML) functions used to interact with the DB.

This library contains all the Data Manipulation Language (DML) functions used to interact with the DB. All the dunctions in this library must be generic and work against the major number of RDBMS possible. This is the list of currently supported and tested DBs: mysql, postresql, mssql, oracle

This library is automatically included by Moodle core so you never need to include it yourself.

For more info about the functions available in this library, please visit: http://docs.moodle.org/en/DML_functions (feel free to modify, improve and document such page, thanks!)