Skip to content

Commit e7e09f7

Browse files
committed
QuestDbGlobalExtensions优化命名
1 parent b1c2702 commit e7e09f7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Providers/FreeSql.Provider.QuestDb/QuestDbGlobalExtensions.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ public static async Task<int> ExecuteBulkCopyAsync<T>(this IInsert<T> that) wher
213213
await client.PostAsync($"{RestAPIExtension.BaseUrl}/imp?name={name}", httpContent);
214214
var readAsStringAsync = await httpResponseMessage.Content.ReadAsStringAsync();
215215
var splitByLine = SplitByLine(readAsStringAsync);
216-
//Console.WriteLine(readAsStringAsync);
217216
foreach (var s in splitByLine)
218217
{
219218
if (s.Contains("Rows"))
@@ -236,7 +235,10 @@ public static async Task<int> ExecuteBulkCopyAsync<T>(this IInsert<T> that) wher
236235
{
237236
File.Delete(filePath);
238237
}
239-
catch { }
238+
catch
239+
{
240+
// ignored
241+
}
240242
}
241243

242244
return result;
@@ -246,7 +248,7 @@ public static async Task<int> ExecuteBulkCopyAsync<T>(this IInsert<T> that) wher
246248
/// 批量快速插入
247249
/// </summary>
248250
/// <typeparam name="T"></typeparam>
249-
/// <param name="that"></param>
251+
/// <param name="insert"></param>
250252
/// <returns></returns>
251253
public static int ExecuteBulkCopy<T>(this IInsert<T> insert) where T : class
252254
{
@@ -340,7 +342,7 @@ internal static FreeSqlBuilder UseQuestDbRestAPI(FreeSqlBuilder buider, string h
340342
var base64 = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{username}:{password}"));
341343
authorization = $"Basic {base64}";
342344
}
343-
//RESTAPI需要无参数
345+
//RestApi需要无参数
344346
buider.UseNoneCommandParameter(true);
345347
return buider;
346348
}

0 commit comments

Comments
 (0)