Skip to content

Commit 5678892

Browse files
committed
Disable ADO.NET connection pooling (obsoleted)
1 parent d3a9685 commit 5678892

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PowerSync/PowerSync.Common/MDSQLite/MDSQLiteAdapter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ protected async Task<MDSQLiteConnection> OpenConnection(string dbFilename)
134134

135135
private static SqliteConnection OpenDatabase(string dbFilename)
136136
{
137-
var connection = new SqliteConnection($"Data Source={dbFilename}");
137+
string connectionString = $"Data Source={dbFilename};Pooling=False;";
138+
var connection = new SqliteConnection(connectionString);
138139
connection.Open();
139140
return connection;
140141
}

0 commit comments

Comments
 (0)