15 lines
400 B
C#
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);
|
|
}
|