You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new method, MySqlConnection.CloneWith(string connectionString) that returns an unopened copy of an existing connection, but with a new connection string. If the new connection string doesn't supply a password, the current connection's password is used.
This would allow (for example) pooling to be changed without disclosing the existing connection's password or requiring the calling code to know it.
Add a new method,
MySqlConnection.CloneWith(string connectionString)
that returns an unopened copy of an existing connection, but with a new connection string. If the new connection string doesn't supply a password, the current connection's password is used.This would allow (for example) pooling to be changed without disclosing the existing connection's password or requiring the calling code to know it.
Examples:
From PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#908 (comment) and similar to https://github.com/npgsql/npgsql/blob/7c44dd30144c224995e688d526276f5373c93de7/src/Npgsql/NpgsqlConnection.cs#L1297-L1315.
The text was updated successfully, but these errors were encountered: