Path: redb/redb.Tests.Integration/Tests/Postgres/PostgresAmbientTransactionTests.cs Snapshot: redb, 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 Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Tests.Integration/Tests/Postgres/PostgresAmbientTransactionTests.cs ---- using redb.Core.Data; using redb.Postgres.Data; using redb.Tests.Integration.Fixtures; using redb.Tests.Integration.Tests.Base; namespace redb.Tests.Integration.Tests.Postgres; [Collection("Postgres")] public class PostgresAmbientTransactionTests : AmbientTransactionTestsBase { public PostgresAmbientTransactionTests(PostgresFixture fixture) : base(fixture.ServiceProvider) { } protected override string CreateProbeTableSql => "CREATE TABLE IF NOT EXISTS ambient_tx_rows (tag varchar(100) NOT NULL)"; protected override string SlowStatementSql => "SELECT 1 FROM pg_sleep(2)"; protected override IRedbConnection CreateStandaloneConnection(IServiceProvider services, bool differentSessionSettings) => new NpgsqlRedbConnection(NpgsqlDataSourceFactory.Create( ConnString("Postgres"), stringCollation: null, lazyReferences: differentSessionSettings)); }