Refactor HANA access to async and parameterized queries

This commit is contained in:
2026-04-17 14:43:15 +02:00
parent 70a54c98d7
commit ad2c6dbd53
5 changed files with 118 additions and 77 deletions
@@ -35,8 +35,8 @@ public sealed class HanaDataSourceAdapter : IDataSourceAdapter
siteId: site.Id, land: site.Land,
details: exportServer.GetConnectionStringPreview());
var records = await Task.Run(() => _hanaService.GetSalesRecords(
exportServer, site.Schema, site.TSC, site.Land, context.Settings.DateFilter));
var records = await _hanaService.GetSalesRecordsAsync(
exportServer, site.Schema, site.TSC, site.Land, context.Settings.DateFilter);
return new DataSourceFetchResult { Records = records };
}