using System.Collections.Generic; using System.Threading.Tasks; using Volo.Abp.Application.Services; namespace Sozsoft.SqlQueryManager.Application.Contracts; /// /// SQL Query Manager - executes T-SQL and provides database metadata. /// Does not persist SQL objects to its own tables. /// public interface ISqlObjectManagerAppService : IApplicationService { /// /// Returns tables (and optionally templates) available on the given data source. /// Task GetAllObjectsAsync(string dataSourceCode); /// /// Executes raw T-SQL against the specified data source. /// Task ExecuteQueryAsync(ExecuteSqlQueryDto input); // Database Metadata Operations Task> GetTableColumnsAsync(string dataSourceCode, string schemaName, string tableName); /// /// Gets the SQL definition/body of a native SQL Server object (Stored Procedure, View, or Function) /// Task GetNativeObjectDefinitionAsync(string dataSourceCode, string schemaName, string objectName); }