persistence/Persistence/Services/IArchiveService.cs

26 lines
800 B
C#
Raw Normal View History

2024-10-31 15:01:12 +05:00
namespace Persistence.Services;
2024-11-01 12:26:14 +05:00
/// <summary>
/// Сервис по работе с БД
2024-11-01 12:26:14 +05:00
/// </summary>
2024-10-31 15:01:12 +05:00
internal interface IArchiveService
{
2024-11-01 12:26:14 +05:00
/// <summary>
/// Переименование БД
2024-11-01 12:26:14 +05:00
/// </summary>
/// <param name="connectionString"></param>
/// <param name="databaseName"></param>
/// <param name="token"></param>
/// <returns></returns>
Task RenameDatabase(string connectionString, string databaseName, CancellationToken token);
/// <summary>
/// Создание БД
2024-11-01 12:26:14 +05:00
/// </summary>
/// <param name="connectionString"></param>
/// <param name="databaseName"></param>
/// <param name="token"></param>
/// <returns></returns>
Task CreateDatabase(string connectionString, string databaseName, CancellationToken token);
2024-10-31 15:01:12 +05:00
}