mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-27 15:10:28 +01:00
26 lines
287 B
Markdown
26 lines
287 B
Markdown
|
# Transaktionnen
|
||
|
|
||
|
## Transaktion starten
|
||
|
|
||
|
```php
|
||
|
$db->beginTransaction();
|
||
|
```
|
||
|
|
||
|
## Transaktion übernehmen / Commit
|
||
|
|
||
|
```php
|
||
|
$db->commit();
|
||
|
```
|
||
|
|
||
|
## Transaktion zurücknehmen / Rollback
|
||
|
|
||
|
```php
|
||
|
$db->rollback();
|
||
|
```
|
||
|
|
||
|
## Prüfen ob Transaktion gestartet ist
|
||
|
|
||
|
```php
|
||
|
$db->inTransaction();
|
||
|
```
|