Path: redb/redb.Tests.Integration/Tests/SqlitePro/SqliteProListRoundTripsTests.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/SqlitePro/SqliteProListRoundTripsTests.cs
----
using Microsoft.Extensions.DependencyInjection;
using redb.Core.Extensions;
using redb.Core.Pro.Extensions;
using redb.SQLite.Pro.Extensions;
using redb.Tests.Integration.Tests.Base;
namespace redb.Tests.Integration.Tests.SqlitePro;
///
/// SQLite is in-process: its list keeps the separate read of the scheme hash (no network round trip to save), so a list
/// call is the list, the values and the hash; the scheme change made by another process is seen all the same.
///
public class SqliteProListRoundTripsTests : ListRoundTripsTestsBase
{
private const string Cs = "Data Source=redb_tests_list_round_trips_pro.db";
private bool _prepared;
protected override int ListCommands => 3;
protected override void Register(IServiceCollection services, Action configure)
=> services.AddRedbPro(configure);
protected override void UseProvider(RedbOptionsBuilder options)
{
// A fresh file per test, shared by the writer and the reader host of that test.
if (!_prepared)
{
Fixtures.SqliteTestSupport.DeleteDbFiles(Cs);
_prepared = true;
}
options.UseSqlite(Cs);
}
}