mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
添加ClickHouse数据库支持
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
using FreeSql.Internal;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FreeSql.ClickHouse.Curd
|
||||
{
|
||||
|
||||
class ClickHouseDelete<T1> : Internal.CommonProvider.DeleteProvider<T1>
|
||||
{
|
||||
public ClickHouseDelete(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere)
|
||||
: base(orm, commonUtils, commonExpression, dywhere)
|
||||
{
|
||||
}
|
||||
|
||||
public override List<T1> ExecuteDeleted()
|
||||
{
|
||||
throw new NotImplementedException("FreeSql.ClickHouse.Curd 暂未实现");
|
||||
}
|
||||
public override string ToSql()
|
||||
{
|
||||
return base.ToSql().Replace("DELETE FROM", "ALTER TABLE").Replace("WHERE", "DELETE WHERE");
|
||||
}
|
||||
#if net40
|
||||
#else
|
||||
public override Task<List<T1>> ExecuteDeletedAsync(CancellationToken cancellationToken = default)
|
||||
{
|
||||
throw new NotImplementedException("FreeSql.ClickHouse.Curd 暂未实现");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user