Path: redb-route/tests/redb.Route.Tests.Sql/E2E/Tier2/MariaDbE2ETests.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/tests/redb.Route.Tests.Sql/E2E/Tier2/MariaDbE2ETests.cs
----
using redb.Route.Tests.Sql.E2E.Infrastructure;
using Xunit.Abstractions;
namespace redb.Route.Tests.Sql.E2E.Tier2;
/// MariaDB 11 (tier 2): the temporary route-mariadb container; unlike MySQL it returns keys with RETURNING.
[Trait("Category", "SqlE2ETier2")]
[Trait("SqlProvider", "mariadb")]
public sealed class MariaDbE2ETests(ITestOutputHelper output) : MySqlFamilyE2ETestsBase(new MariaDbE2EProvider(), output)
{
[Fact]
public async Task Connector_ReturningKeys_CollectedInHeader()
{
var items = new List> { new() { ["id"] = 21, ["val"] = "a" }, new() { ["id"] = 22, ["val"] = "b" } };
var (exchange, thrown) = await SqlBatchRun.RunAsync(Db, Provider.ReturningInsertSql(Db.Table), items, breakOnError: null,
batchSize: 10, new() { ["outputType"] = "SelectList" });
thrown.Should().BeNull(Outcome.Describe(thrown));
KeyIds(exchange).Should().Equal(21, 22);
}
}