From e7e09f7ecefe9aa18ca0abe280a73f649dbca32a Mon Sep 17 00:00:00 2001 From: d4ilys <963922242@qq.com> Date: Mon, 18 Sep 2023 09:25:01 +0800 Subject: [PATCH] =?UTF-8?q?QuestDbGlobalExtensions=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../QuestDbGlobalExtensions.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Providers/FreeSql.Provider.QuestDb/QuestDbGlobalExtensions.cs b/Providers/FreeSql.Provider.QuestDb/QuestDbGlobalExtensions.cs index c0bc81b7..cf4bcfc3 100644 --- a/Providers/FreeSql.Provider.QuestDb/QuestDbGlobalExtensions.cs +++ b/Providers/FreeSql.Provider.QuestDb/QuestDbGlobalExtensions.cs @@ -213,7 +213,6 @@ public static partial class QuestDbGlobalExtensions await client.PostAsync($"{RestAPIExtension.BaseUrl}/imp?name={name}", httpContent); var readAsStringAsync = await httpResponseMessage.Content.ReadAsStringAsync(); var splitByLine = SplitByLine(readAsStringAsync); - //Console.WriteLine(readAsStringAsync); foreach (var s in splitByLine) { if (s.Contains("Rows")) @@ -236,7 +235,10 @@ public static partial class QuestDbGlobalExtensions { File.Delete(filePath); } - catch { } + catch + { + // ignored + } } return result; @@ -246,7 +248,7 @@ public static partial class QuestDbGlobalExtensions /// 批量快速插入 /// /// - /// + /// /// public static int ExecuteBulkCopy(this IInsert insert) where T : class { @@ -340,7 +342,7 @@ static class RestAPIExtension var base64 = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{username}:{password}")); authorization = $"Basic {base64}"; } - //RESTAPI需要无参数 + //RestApi需要无参数 buider.UseNoneCommandParameter(true); return buider; }