Files
HomeAssistant/HaDbMigration/Services/Interfaces/IPostgresWriterService.cs
T
2026-03-12 09:47:49 +02:00

15 lines
400 B
C#

using System.Threading.Channels;
using HaDbMigration.Models;
namespace HaDbMigration.Services.Interfaces;
public interface IPostgresWriterService
{
Task WriteTableAsync(
TableDescriptor table,
ChannelReader<IReadOnlyList<object?[]>> reader,
CancellationToken cancellationToken);
Task<long> GetRowCountAsync(string tableName, CancellationToken cancellationToken);
}