feat: persisted-operations schema and EF entities#67
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
21e7587 to
b5eec61
Compare
Adds the trax.persisted_operation and trax.persisted_operation_history tables (migration 035) and the EF Core models that map to them. Both tables live in the trax schema alongside the rest of the Trax tables; the entities are surfaced as DbSets on the existing DataContext so consumers can query them through IDataContext. The persisted-operations feature is consumed by Trax.Api.GraphQL.
b5eec61 to
5f1fae0
Compare
|
This PR is included in version 1.35.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
trax.persisted_operationandtrax.persisted_operation_historytables (migration 035).PersistedOperation,PersistedOperationHistory) plus theirPersistent*mappings, surfaced as DbSets on the existingIDataContext.traxschema; consumers query them through the existingIDataContext(no new context).This is the data-layer half of the persisted GraphQL operations feature. The GraphQL package and middleware live in Trax.Api (separate PR).
Test plan
dotnet build Trax.Effect/produces zero warnings.Trax.Api.Tests.PersistedOperations.IntegrationTests.PersistedOperationsDbContextTests(in the Trax.Api PR).docker compose up -d).