class Configuration (View source)

Configuration container for the Doctrine DBAL.

Properties

protected array $_attributes The attributes that are contained in the configuration.

Methods

void
setSQLLogger(SQLLogger $logger = null)

Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.

SQLLogger|null
getSQLLogger()

Gets the SQL logger that is used.

Cache|null
getResultCacheImpl()

Gets the cache driver implementation that is used for query result caching.

void
setResultCacheImpl(Cache $cacheImpl)

Sets the cache driver implementation that is used for query result caching.

void
setFilterSchemaAssetsExpression(string $filterExpression)

Sets the filter schema assets expression.

string|null
getFilterSchemaAssetsExpression()

Returns filter schema assets expression.

setAutoCommit(bool $autoCommit)

Sets the default auto-commit mode for connections.

bool
getAutoCommit()

Returns the default auto-commit mode for connections.

Details

void setSQLLogger(SQLLogger $logger = null)

Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.

Parameters

SQLLogger $logger

Return Value

void

SQLLogger|null getSQLLogger()

Gets the SQL logger that is used.

Return Value

SQLLogger|null

Cache|null getResultCacheImpl()

Gets the cache driver implementation that is used for query result caching.

Return Value

Cache|null

void setResultCacheImpl(Cache $cacheImpl)

Sets the cache driver implementation that is used for query result caching.

Parameters

Cache $cacheImpl

Return Value

void

void setFilterSchemaAssetsExpression(string $filterExpression)

Sets the filter schema assets expression.

Only include tables/sequences matching the filter expression regexp in schema instances generated for the active connection when calling {AbstractSchemaManager#createSchema()}.

Parameters

string $filterExpression

Return Value

void

string|null getFilterSchemaAssetsExpression()

Returns filter schema assets expression.

Return Value

string|null

setAutoCommit(bool $autoCommit)

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

bool $autoCommit True to enable auto-commit mode; false to disable it.

See also

getAutoCommit

bool getAutoCommit()

Returns the default auto-commit mode for connections.

Return Value

bool True if auto-commit mode is enabled by default for connections, false otherwise.

See also

setAutoCommit