Pure.RelationalSchema.Self.Storage.Projection
0.1.0-preview.6.3.0
See the version list below for details.
dotnet add package Pure.RelationalSchema.Self.Storage.Projection --version 0.1.0-preview.6.3.0
NuGet\Install-Package Pure.RelationalSchema.Self.Storage.Projection -Version 0.1.0-preview.6.3.0
<PackageReference Include="Pure.RelationalSchema.Self.Storage.Projection" Version="0.1.0-preview.6.3.0" />
<PackageVersion Include="Pure.RelationalSchema.Self.Storage.Projection" Version="0.1.0-preview.6.3.0" />
<PackageReference Include="Pure.RelationalSchema.Self.Storage.Projection" />
paket add Pure.RelationalSchema.Self.Storage.Projection --version 0.1.0-preview.6.3.0
#r "nuget: Pure.RelationalSchema.Self.Storage.Projection, 0.1.0-preview.6.3.0"
#:package Pure.RelationalSchema.Self.Storage.Projection@0.1.0-preview.6.3.0
#addin nuget:?package=Pure.RelationalSchema.Self.Storage.Projection&version=0.1.0-preview.6.3.0&prerelease
#tool nuget:?package=Pure.RelationalSchema.Self.Storage.Projection&version=0.1.0-preview.6.3.0&prerelease
Pure.RelationalSchema.Self.Storage.Projection
Projects an ISchema into normalized storage rows for the Pure relational schema meta-model.
Overview
Pure.RelationalSchema.Self.Storage.Projection takes an ISchema and projects it into a set of storage rows grouped by table. The result is an IEnumerable<IGrouping<ITable, IRow>> that covers every structural element of the schema — column types, columns, tables, indexes, foreign keys, and the join tables between them — ready to be persisted through the Pure.RelationalSchema.Storage layer.
Public API
| Type | Kind | Description |
|---|---|---|
SchemaProjection |
sealed record |
Entry point. Wraps an ISchema and enumerates all projection groups. |
SchemaEntityProjection |
sealed record |
Projects a single ISchema as an IRow into SchemasTable. |
Projection groups
SchemaProjection yields one IGrouping<ITable, IRow> per logical table in the self-schema:
| Table | Contents |
|---|---|
ColumnTypesTable |
Distinct column types across all tables |
ColumnsTable |
All columns, deduplicated by content hash |
TablesTable |
All tables |
TablesToColumnsTable |
Table ↔ column membership |
IndexesTable |
All indexes |
IndexesToColumnsTable |
Index ↔ column membership |
TablesToIndexesTable |
Table ↔ index membership |
ForeignKeysTable |
All foreign keys with referencing/referenced table UUIDs |
ForeignKeysToReferencingColumnsTable |
Foreign key ↔ referencing column |
ForeignKeysToReferencedColumnsTable |
Foreign key ↔ referenced column |
SchemasTable |
The schema itself as a single row |
SchemasToTablesTable |
Schema ↔ table membership |
SchemasToForeignKeysTable |
Schema ↔ foreign key membership |
Each entity is identified by a ULID-based UUID cell and deduplicated by a content hash computed over the entity's structural fields.
Design Principles
- Self-describing — the target tables are defined by
Pure.RelationalSchema.Self.Schema, so the meta-model describes itself. - Content-addressed — every entity row is keyed by a hex-encoded structural hash; duplicates across tables are collapsed automatically.
- AOT-compatible — the library carries
IsAotCompatible = trueand avoids reflection.
Dependencies
Pure.RelationalSchema.Self.Schema— target table and column definitions for the self-describing schemaPure.RelationalSchema.Storage—IRow,ICell,ITableabstractions and theCellimplementationPure.RelationalSchema.HashCodes— content-addressed hashing for schema entities (TableHash,ColumnHash,IndexHash,ForeignKeyHash)Pure.RelationalSchema.Storage.HashCodes— hash codes for storage-layer column objectsPure.Primitives— immutableStringandUlidvalue types used as cell valuesPure.Primitives.String.Operations—HexStringconversion for hash-to-string encodingPure.Collections.Generic—Dictionary<TKey, TValue, TItem>with custom key/value selectors
Target Frameworks
- .NET 8
- .NET 9
- .NET 10
Installation
dotnet add package Pure.RelationalSchema.Self.Storage.Projection
Usage
ISchema schema = ...; // your ISchema implementation
SchemaProjection projection = new SchemaProjection(schema);
foreach (IGrouping<ITable, IRow> group in projection)
{
ITable table = group.Key;
foreach (IRow row in group)
{
foreach ((IColumn column, ICell cell) in row.Cells)
{
// persist or process each cell
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Pure.Collections.Generic (>= 0.1.0-preview.3.0.0)
- Pure.Primitives (>= 3.7.0)
- Pure.Primitives.String.Operations (>= 1.7.0)
- Pure.RelationalSchema.HashCodes (>= 3.3.0)
- Pure.RelationalSchema.Self.Schema (>= 0.1.0-preview.6.1.0)
- Pure.RelationalSchema.Storage (>= 0.1.0-preview.8.0.0)
- Pure.RelationalSchema.Storage.HashCodes (>= 0.1.0-preview.2.2.0)
-
net8.0
- Pure.Collections.Generic (>= 0.1.0-preview.3.0.0)
- Pure.Primitives (>= 3.7.0)
- Pure.Primitives.String.Operations (>= 1.7.0)
- Pure.RelationalSchema.HashCodes (>= 3.3.0)
- Pure.RelationalSchema.Self.Schema (>= 0.1.0-preview.6.1.0)
- Pure.RelationalSchema.Storage (>= 0.1.0-preview.8.0.0)
- Pure.RelationalSchema.Storage.HashCodes (>= 0.1.0-preview.2.2.0)
-
net9.0
- Pure.Collections.Generic (>= 0.1.0-preview.3.0.0)
- Pure.Primitives (>= 3.7.0)
- Pure.Primitives.String.Operations (>= 1.7.0)
- Pure.RelationalSchema.HashCodes (>= 3.3.0)
- Pure.RelationalSchema.Self.Schema (>= 0.1.0-preview.6.1.0)
- Pure.RelationalSchema.Storage (>= 0.1.0-preview.8.0.0)
- Pure.RelationalSchema.Storage.HashCodes (>= 0.1.0-preview.2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.6.4.0 | 82 | 11/11/2026 |
| 0.1.0-preview.6.3.1 | 86 | 11/5/2026 |
| 0.1.0-preview.6.3.0 | 253 | 10/23/2026 |
| 0.1.0-preview.6.2.0 | 79 | 10/22/2026 |
| 0.1.0-preview.6.1.0 | 76 | 10/22/2026 |
| 0.1.0-preview.6.0.5 | 628 | 8/6/2026 |
| 0.1.0-preview.6.0.4 | 106 | 8/4/2026 |
| 0.1.0-preview.6.0.2 | 352 | 6/25/2026 |
| 0.1.0-preview.6.0.1 | 296 | 6/7/2026 |
| 0.1.0-preview.6.0.0 | 438 | 5/28/2026 |
| 0.1.0-preview.5.0.2 | 168 | 5/20/2026 |
| 0.1.0-preview.5.0.1 | 750 | 3/16/2026 |
| 0.1.0-preview.5.0.0 | 107 | 3/16/2026 |
| 0.1.0-preview.4.0.0 | 576 | 11/15/2025 |
| 0.1.0-preview.3.1.0 | 362 | 11/10/2025 |
| 0.1.0-preview.3.0.0 | 234 | 11/4/2025 |
| 0.1.0-preview.2.0.0 | 210 | 11/3/2025 |
| 0.1.0-preview.1.0.1 | 205 | 11/3/2025 |
| 0.1.0-preview.1.0.0 | 211 | 10/30/2025 |
| 0.1.0-preview.0.1.0 | 180 | 10/24/2025 |