2024-12-16 15:38:46 +05:00
|
|
|
|
namespace DD.Persistence.Services.Interfaces;
|
2024-11-01 12:26:14 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-11-18 14:22:09 +05:00
|
|
|
|
/// Сервис по работе с БД
|
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-18 14:22:09 +05:00
|
|
|
|
/// Переименование БД
|
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-18 14:22:09 +05:00
|
|
|
|
/// Создание БД
|
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
|
|
|
|
}
|