using NewLife.Studio.Core.DTOs;
namespace NewLife.Studio.Data;
/// <summary>数据库 Provider 接口</summary>
public interface IDataProvider
{
string ProviderName { get; }
string[] SupportedSchemes { get; }
bool CanTestConnection { get; }
Task<bool> TestConnectionAsync(ConnectionInfo conn, CancellationToken ct = default);
Task<IDbSession> OpenSessionAsync(ConnectionInfo conn, CancellationToken ct = default);
}
|