mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update TDengine
This commit is contained in:
parent
7ef5439433
commit
556a8090e7
@ -228,6 +228,25 @@ namespace SqlSugar.TDengine
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Methods
|
#region Methods
|
||||||
|
public override List<DbTableInfo> GetTableInfoList(bool isCache = true)
|
||||||
|
{
|
||||||
|
var sql = string.Empty;
|
||||||
|
string cacheKey = "DbMaintenanceProvider.GetTableInfoList" + this.Context.CurrentConnectionConfig.ConfigId;
|
||||||
|
cacheKey = GetCacheKey(cacheKey);
|
||||||
|
var result = new List<DbTableInfo>();
|
||||||
|
var list = this.GetTableInfoListSql.Split(" UNION ");
|
||||||
|
this.Context.Utilities.PageEach(list, 100, pageItem =>
|
||||||
|
{
|
||||||
|
var addSql = string.Join(" union ", pageItem);
|
||||||
|
var addItem = this.Context.Ado.SqlQuery<DbTableInfo>(addSql);
|
||||||
|
result.AddRange(addItem);
|
||||||
|
});
|
||||||
|
foreach (var item in result)
|
||||||
|
{
|
||||||
|
item.DbObjectType = DbObjectType.Table;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
public override bool AddColumn(string tableName, DbColumnInfo columnInfo)
|
public override bool AddColumn(string tableName, DbColumnInfo columnInfo)
|
||||||
{
|
{
|
||||||
if (columnInfo.DbColumnName == "TagsTypeId")
|
if (columnInfo.DbColumnName == "TagsTypeId")
|
||||||
|
Loading…
Reference in New Issue
Block a user