Improve documentation for how to use database transactions in database.api.php

Created on 3 May 2010, almost 15 years ago
Updated 29 August 2023, over 1 year ago

Problem/Motivation

Better explain/document how to use database transactions in D8:

  1. That transactions can be nested and how that works on D8.
  2. That a transaction will be committed if the transaction variable gets out of scope.
  3. That transactions are only supported on database engines that support transactions and not on other engines (like MyISAM on MySQL).

Steps to reproduce

Proposed resolution

Patch
Review
Commit

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
DatabaseΒ  β†’

Last updated about 17 hours ago

  • Maintained by
  • πŸ‡³πŸ‡±Netherlands @daffie
Created by

πŸ‡ΊπŸ‡ΈUnited States rfay Palisade, CO, USA

Live updates comments and jobs are added and updated live.
  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024