mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +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();
|
||
|
```
|