メインコンテンツまでスキップ
Version: Fegg 5.x(開発版)

Pdo::closeAll

Drop every shared connection

Description​

public static void Pdo::closeAll()

Drops every shared connection. An open transaction is rolled back. The next query opens a new connection. Useful in long-running commands and tests.

Example​

Controller
use Fegg\Database\Pdo;

Pdo::closeAll();