Skip to main content

5 docs tagged with "core_dml"

View All Tags

Data definition API

In this page you'll access to the available functions under Moodle to be able to handle DB structures (tables, fields, indexes...).

Data manipulation API

This page describes the functions available to access data in the Moodle database. You should exclusively use these functions in order to retrieve or modify database content because these functions provide a high level of abstraction and guarantee that your database manipulation will work against different RDBMSes.

DML drivers

A number of native drivers are included with Moodle, including those with support for:

DML exceptions

The DML API uses a selection of exceptions to indicate errors.

Transactions

Moodle allows data manipulation to take place within a database transaction, known as a Delegated transaction. This allows you to perform CRUD operations, and roll them back if a failure takes place.