You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cross-tests with EFCore.ComplexIndexes: temporal and exclusion constraints over DateRange, RangeSet and TimeRange columns, plus a joint smoke consumer #154
area/range-setRangeSet and multirange algebraarea/rangesRange unions, variants and the shape enginespackage/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQLtestsAdds or changes tests only (oracles, harnesses); no library code
EFCore.ComplexIndexes.PostgreSQL validates a temporal-constraint period by its store type name (anything ending in range, or CLR NpgsqlRange<T>), and every mapping this package registers carries that name. So HasTemporalConstraint(period: b => b.Period) over a DateRange property should already work, unverified. Neither package references the other, and that stays so; the connection is proven by tests on both sides (ComplexIndexes holds the mirror issue under its 11.0.0 epic).
Here, with a test-only reference to EFCore.ComplexIndexes.PostgreSQL in the integration project:
HasExclusionConstraint with && over the same properties, on PostgreSQL 16 and 18, both lines. docs/efcore.md already shows this recipe; the test turns its sentences into held claims.
A GiST index over a range column serving a && query.
A joint consumer in test/consumer-smoke-test.sh that restores both families from the real feeds (package source mapping already isolates this repo's ids) and asserts the generated migration SQL.
Done when claims.json holds the promises and the seeds show the tests notice a dropped store type name.
Implemented in #159 (stacked on #158). The joint consumer is added to test/consumer-smoke-test.sh, not deferred. It fits the script's shape: one more hand-written consumer, with scaffold_consumer taking extra id@version packages, and the existing source mapping already routes EFCore.ComplexIndexes.PostgreSQL to nuget.org. It asserts the create script (via the package's runtime differ, so no database) rather than a scaffolded migration file.
Measured locally: temporal constraints on postgres:18-alpine, exclusion constraints on postgres:16-alpine and postgres:18-alpine, over DateRange, RangeSet<DateRange, DateOnly> and TimeRange, each creating its schema with EnsureCreated + UseNpgsqlComplexIndexes(). The GiST index serves all eight range operators on all three columns. The seed range-mapping-drops-store-type-name.patch is CAUGHT 6 of 6, and the smoke consumer fails on it too.
area/range-setRangeSet and multirange algebraarea/rangesRange unions, variants and the shape enginespackage/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQLtestsAdds or changes tests only (oracles, harnesses); no library code
Activity
CaffeinatedCoder commentedon Oct 18, 2026
Implemented in #159 (stacked on #158). The joint consumer is added to
test/consumer-smoke-test.sh, not deferred. It fits the script's shape: one more hand-written consumer, withscaffold_consumertaking extraid@versionpackages, and the existing source mapping already routesEFCore.ComplexIndexes.PostgreSQLto nuget.org. It asserts the create script (via the package's runtime differ, so no database) rather than a scaffolded migration file.Measured locally: temporal constraints on
postgres:18-alpine, exclusion constraints onpostgres:16-alpineandpostgres:18-alpine, overDateRange,RangeSet<DateRange, DateOnly>andTimeRange, each creating its schema withEnsureCreated+UseNpgsqlComplexIndexes(). The GiST index serves all eight range operators on all three columns. The seedrange-mapping-drops-store-type-name.patchis CAUGHT 6 of 6, and the smoke consumer fails on it too.