Clone the MySqlBulkLoader API (specified here: https://dev.mysql.com/doc/connector-net/en/connector-net-programming-bulk-loader.html).
As an extension, support a Stream property instead of a FileName. Behind the scenes, create a GUID and pass that to MySQL as the LOAD DATA LOCAL INFILE file name (https://dev.mysql.com/doc/refman/5.7/en/load-data.html).
When the LOCAL_INFILE_Request is received with that GUID as the name, stream the in-memory data to the server.
Clone the
MySqlBulkLoaderAPI (specified here: https://dev.mysql.com/doc/connector-net/en/connector-net-programming-bulk-loader.html).As an extension, support a
Streamproperty instead of aFileName. Behind the scenes, create a GUID and pass that to MySQL as theLOAD DATA LOCAL INFILEfile name (https://dev.mysql.com/doc/refman/5.7/en/load-data.html).When the
LOCAL_INFILE_Requestis received with that GUID as the name, stream the in-memory data to the server.