init commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using Microsoft.Extensions.Localization;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RoadFlow.Data
|
||||
{
|
||||
public interface IDbConnection : IRoadFlowRepository<RoadFlow.Model.rf_dbconnection>
|
||||
{
|
||||
List<Model.TableField> GetTableFields(string id, string tableName);
|
||||
List<Model.TableField> GetTableFields(Model.rf_dbconnection conn, string tableName);
|
||||
DataTable GetTableFields(Model.rf_dbconnection dbConnection, string table, string dbName);
|
||||
Dictionary<string, string> GetTables(string id);
|
||||
DataTable GetTables(Model.rf_dbconnection dbConnection);
|
||||
|
||||
/// <summary>
|
||||
/// 测试一个SQL语句是否正确
|
||||
/// </summary>
|
||||
/// <param name="id">连接ID</param>
|
||||
/// <param name="sql">sql语句</param>
|
||||
/// <param name="parameters">sql参数</param>
|
||||
/// <returns></returns>
|
||||
public string TestSQL(string id, string sql, object[] parameters = null);
|
||||
/// <summary>
|
||||
/// 得到连接类别下拉项(VUE)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public JArray GetConnTypeOptionsVue();
|
||||
/// <summary>
|
||||
/// 测试一个连接
|
||||
/// </summary>
|
||||
/// <param name="id">连接ID</param>
|
||||
/// <param name="localizer">语言包</param>
|
||||
/// <returns>返回"1"表示正常,其它为错误信息</returns>
|
||||
public string TestConnection(string id, IStringLocalizer localizer = null);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user