Add SQLite content storage with queue-based operations#1092
Merged
dluc merged 2 commits intomicrosoft:mainfrom Nov 27, 2025
Merged
Add SQLite content storage with queue-based operations#1092dluc merged 2 commits intomicrosoft:mainfrom
dluc merged 2 commits intomicrosoft:mainfrom
Conversation
Implements feature 00002: SQLite-based content storage system with distributed locking and queue management. Key features: - Two-phase write pattern (queue + optimize + process) - Distributed locking via LastAttemptTimestamp for multi-VM support - Operations queue with automatic cancellation optimization - Upsert and Delete operations (both idempotent) - JSON storage for tags and metadata - Complete test coverage (74 tests: 43 config + 31 storage) Components: - Entity classes: ContentRecord, OperationRecord - DbContext with SQLite configuration and indexes - Service layer with two-phase write implementation - DTOs and models for clean API boundaries - Cuid2-based ID generation - Custom exception types for error handling All tests passing (100%), zero build warnings.
…zer warnings - Removed all ConfigureAwait calls from test files (xUnit1030 compliance) - Made all test classes public (xUnit1000 requirement) - Added analyzer suppressions to test project (CA1812, xUnit1030) - Build now passes with 0 warnings, 0 errors
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
Implements SQLite-based content storage system with distributed locking and queue management.
Key Features
LastAttemptTimestampfieldArchitecture
Database Schema
Content Table (
km_content):Operations Table (
km_operations):Components
Test Coverage
74 tests, 100% passing:
Implementation Details
km_prefix to avoid collisionsFiles Changed
New files (10):
src/Core/Storage/- Complete implementationtests/Core.Tests/Storage/- Test suiteModified files:
src/Core/Core.csproj- Added Cuid.Net package