MySQL supports the SQL Standard for savepoints: https://dev.mysql.com/doc/refman/8.0/en/savepoint.html. SqlClient and Npgsql expose APIs for this their DbTransaction implementation, and dotnet/runtime#33397 tracks adding the relevant APIs in System.Data.