mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
QuestDbGlobalExtensions优化命名
This commit is contained in:
parent
b1c2702269
commit
e7e09f7ece
@ -213,7 +213,6 @@ public static partial class QuestDbGlobalExtensions
|
|||||||
await client.PostAsync($"{RestAPIExtension.BaseUrl}/imp?name={name}", httpContent);
|
await client.PostAsync($"{RestAPIExtension.BaseUrl}/imp?name={name}", httpContent);
|
||||||
var readAsStringAsync = await httpResponseMessage.Content.ReadAsStringAsync();
|
var readAsStringAsync = await httpResponseMessage.Content.ReadAsStringAsync();
|
||||||
var splitByLine = SplitByLine(readAsStringAsync);
|
var splitByLine = SplitByLine(readAsStringAsync);
|
||||||
//Console.WriteLine(readAsStringAsync);
|
|
||||||
foreach (var s in splitByLine)
|
foreach (var s in splitByLine)
|
||||||
{
|
{
|
||||||
if (s.Contains("Rows"))
|
if (s.Contains("Rows"))
|
||||||
@ -236,7 +235,10 @@ public static partial class QuestDbGlobalExtensions
|
|||||||
{
|
{
|
||||||
File.Delete(filePath);
|
File.Delete(filePath);
|
||||||
}
|
}
|
||||||
catch { }
|
catch
|
||||||
|
{
|
||||||
|
// ignored
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -246,7 +248,7 @@ public static partial class QuestDbGlobalExtensions
|
|||||||
/// 批量快速插入
|
/// 批量快速插入
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
/// <param name="that"></param>
|
/// <param name="insert"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int ExecuteBulkCopy<T>(this IInsert<T> insert) where T : class
|
public static int ExecuteBulkCopy<T>(this IInsert<T> insert) where T : class
|
||||||
{
|
{
|
||||||
@ -340,7 +342,7 @@ static class RestAPIExtension
|
|||||||
var base64 = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{username}:{password}"));
|
var base64 = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{username}:{password}"));
|
||||||
authorization = $"Basic {base64}";
|
authorization = $"Basic {base64}";
|
||||||
}
|
}
|
||||||
//RESTAPI需要无参数
|
//RestApi需要无参数
|
||||||
buider.UseNoneCommandParameter(true);
|
buider.UseNoneCommandParameter(true);
|
||||||
return buider;
|
return buider;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user