[增添]添加了datasource的setting数据库以及默认值
This commit is contained in:
30
vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php
vendored
Normal file
30
vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\DBAL\Driver\OCI8;
|
||||
|
||||
/**
|
||||
* Encapsulates the execution mode that is shared between the connection and its statements.
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise
|
||||
*/
|
||||
final class ExecutionMode
|
||||
{
|
||||
private bool $isAutoCommitEnabled = true;
|
||||
|
||||
public function enableAutoCommit(): void
|
||||
{
|
||||
$this->isAutoCommitEnabled = true;
|
||||
}
|
||||
|
||||
public function disableAutoCommit(): void
|
||||
{
|
||||
$this->isAutoCommitEnabled = false;
|
||||
}
|
||||
|
||||
public function isAutoCommitEnabled(): bool
|
||||
{
|
||||
return $this->isAutoCommitEnabled;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user