$databasesupportsTransaction()

Are transactions available with current DB engine (or table)?

Usage

// basic usage
$bool = $database->supportsTransaction();

// usage with all arguments
$bool = $database->supportsTransaction(string $table = '');

Arguments

NameType(s)Description
$table (optional)string

Optionally specify a table to specifically check to that table

Return value

bool


$database methods and properties

API reference based on ProcessWire core version 3.0.251