mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
QuestDb写入CSV文件更改为异步
This commit is contained in:
parent
523a7ffffd
commit
b1c2702269
@ -197,7 +197,7 @@ public static partial class QuestDbGlobalExtensions
|
|||||||
using (var writer = new StreamWriter(filePath))
|
using (var writer = new StreamWriter(filePath))
|
||||||
using (var csv = new CsvWriter(writer, CultureInfo.CurrentCulture))
|
using (var csv = new CsvWriter(writer, CultureInfo.CurrentCulture))
|
||||||
{
|
{
|
||||||
csv.WriteRecords(insert._source);
|
await csv.WriteRecordsAsync(insert._source);
|
||||||
}
|
}
|
||||||
|
|
||||||
var httpContent = new MultipartFormDataContent(boundary);
|
var httpContent = new MultipartFormDataContent(boundary);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user