Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isolation levels to SQL Server Connector #45023

Merged
merged 5 commits into from Nov 19, 2022

Conversation

mikedodd
Copy link
Contributor

@mikedodd mikedodd commented Nov 19, 2022

Extending this concept to the SqlServer Connector

we currently ran into the situation where we need to set the transaction isolation level for SqlServer.

We implemented it and thought maybe it makes sense to bring that into laravel core, as laravel currently lacks that possibility, whereas Doctrine provides that possibility.

We currently configure it in database.php

return [
    'connections' => [
          'default' => [
                ...
               'host' => env('DB_HOST'),
               ...
               'isolation_level' => env('DB_ISOLATION_LEVEL', 'REPEATABLE READ'),
              ....
            ]
      ]
];

This ha been added already for the MySql connector and so I am following the same concept for the MsSQL connector.

@taylorotwell taylorotwell merged commit 5813acb into laravel:9.x Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants