| Methods |
public
|
__construct()
|
#
|
public
|
setSQLLogger(?SQLLogger $logger = null): void
Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.
Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.
Deprecated
Use {@see setMiddlewares()} and {@see \Doctrine\DBAL\Logging\Middleware} instead.
|
#
|
public
|
getSQLLogger(): ?SQLLogger
Gets the SQL logger that is used.
Gets the SQL logger that is used.
|
#
|
public
|
getResultCache(): ?CacheItemPoolInterface
Gets the cache driver implementation that is used for query result caching.
Gets the cache driver implementation that is used for query result caching.
Overriden by
|
#
|
public
|
getResultCacheImpl(): ?Cache
Gets the cache driver implementation that is used for query result caching.
Gets the cache driver implementation that is used for query result caching.
Deprecated
Use {@see getResultCache()} instead.
|
#
|
public
|
setResultCache(CacheItemPoolInterface $cache): void
Sets the cache driver implementation that is used for query result caching.
Sets the cache driver implementation that is used for query result caching.
Overriden by
|
#
|
public
|
setResultCacheImpl(Cache $cacheImpl): void
Sets the cache driver implementation that is used for query result caching.
Sets the cache driver implementation that is used for query result caching.
Deprecated
Use {@see setResultCache()} instead.
|
#
|
public
|
setSchemaAssetsFilter(?callable $callable = null): void
Sets the callable to use to filter schema assets.
Sets the callable to use to filter schema assets.
|
#
|
public
|
getSchemaAssetsFilter(): ?callable
Returns the callable to use to filter schema assets.
Returns the callable to use to filter schema assets.
|
#
|
public
|
setAutoCommit(bool $autoCommit): void
Sets the default auto-commit mode for connections.
Sets the default auto-commit mode for connections.
If a connection is in auto-commit mode, then all its SQL statements will be executed and committed as individual
transactions. Otherwise, its SQL statements are grouped into transactions that are terminated by a call to either
the method commit or the method rollback. By default, new connections are in auto-commit mode.
Parameters
| $autoCommit |
True to enable auto-commit mode; false to disable it
|
|
#
|
public
|
getAutoCommit(): bool
Returns the default auto-commit mode for connections.
Returns the default auto-commit mode for connections.
Returns
True if auto-commit mode is enabled by default for connections, false otherwise.
|
#
|
public
|
setMiddlewares(Middleware[] $middlewares): $this
|
#
|
public
|
getMiddlewares(): Middleware[]
|
#
|
public
|
getSchemaManagerFactory(): ?SchemaManagerFactory
|
#
|
public
|
setSchemaManagerFactory(SchemaManagerFactory $schemaManagerFactory): $this
|
#
|
public
|
getDisableTypeComments(): bool
|
#
|
public
|
setDisableTypeComments(bool $disableTypeComments): $this
|
#
|