Skip to content

Add isolation levels to SQL Server Connector - #45023

Merged
taylorotwell merged 5 commits into
laravel:9.xfrom
mikedodd:sqlserver-isolation-level
Nov 19, 2022
Merged

Add isolation levels to SQL Server Connector#45023
taylorotwell merged 5 commits into
laravel:9.xfrom
mikedodd:sqlserver-isolation-level

Conversation

@mikedodd

@mikedodd mikedodd commented Nov 19, 2022

Copy link
Copy Markdown
Contributor

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.

3 participants