Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Lock] Remove mention off DBAL Connection support for locking#15970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
OskarStark merged 1 commit intosymfony:6.3fromJohJohan:15952
Dec 19, 2023
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletionscomponents/lock.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -513,13 +513,12 @@ MongoDB Connection String:
PdoStore
~~~~~~~~

The PdoStore saves locks in an SQL database. It is identical to DoctrineDbalStore
but requires a `PDO`_ connection or a `Data Source Name (DSN)`_. This store does
not support blocking, and expects a TTL to avoid stalled locks::
The PdoStore saves locks in an SQL database. It requires a `PDO`_ connection or a `Data Source Name (DSN)`_. This store does not
support blocking, and expects a TTL to avoid stalled locks::

use Symfony\Component\Lock\Store\PdoStore;

// a PDO or DSN for lazy connecting through PDO
// a PDOinstanceor DSN for lazy connecting through PDO
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=app';
$store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);

Expand DownExpand Up@@ -579,9 +578,8 @@ the :method:`Symfony\\Component\\Lock\\Store\\DoctrineDbalStore::save` method.
PostgreSqlStore
~~~~~~~~~~~~~~~

The PostgreSqlStore and DoctrineDbalPostgreSqlStore uses `Advisory Locks`_ provided by PostgreSQL.
It is identical to DoctrineDbalPostgreSqlStore but requires `PDO`_ connection or
a `Data Source Name (DSN)`_. It supports native blocking, as well as sharing
The PostgreSqlStore uses `Advisory Locks`_ provided by PostgreSQL. It requires a
`PDO`_ connection or a `Data Source Name (DSN)`_. It supports native blocking, as well as sharing
locks::

use Symfony\Component\Lock\Store\PostgreSqlStore;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp