Pure.RelationalSchema.Abstractions
1.3.0
dotnet add package Pure.RelationalSchema.Abstractions --version 1.3.0
NuGet\Install-Package Pure.RelationalSchema.Abstractions -Version 1.3.0
<PackageReference Include="Pure.RelationalSchema.Abstractions" Version="1.3.0" />
<PackageVersion Include="Pure.RelationalSchema.Abstractions" Version="1.3.0" />
<PackageReference Include="Pure.RelationalSchema.Abstractions" />
paket add Pure.RelationalSchema.Abstractions --version 1.3.0
#r "nuget: Pure.RelationalSchema.Abstractions, 1.3.0"
#:package Pure.RelationalSchema.Abstractions@1.3.0
#addin nuget:?package=Pure.RelationalSchema.Abstractions&version=1.3.0
#tool nuget:?package=Pure.RelationalSchema.Abstractions&version=1.3.0
Pure.RelationalSchema.Abstractions
Immutable, composable interfaces for relational database schema metadata — part of the Pure ecosystem.
Overview
Pure.RelationalSchema.Abstractions defines a minimal set of read-only interfaces for modelling relational database schemas. The interfaces represent the structural metadata of a database — schemas, tables, columns, column types, indexes, and foreign keys — without coupling to any specific database engine or ORM.
All names are expressed as IString from Pure.Primitives.Abstractions, keeping the type system consistent across the ecosystem.
Interfaces
| Interface | Namespace | Description |
|---|---|---|
ISchema |
Pure.RelationalSchema.Abstractions.Schema |
Root container — schema name, tables, and foreign keys |
ITable |
Pure.RelationalSchema.Abstractions.Table |
Table — name, columns, and indexes |
IColumn |
Pure.RelationalSchema.Abstractions.Column |
Column — name and data type |
IColumnType |
Pure.RelationalSchema.Abstractions.ColumnType |
Column data type — name |
IIndex |
Pure.RelationalSchema.Abstractions.Index |
Index — uniqueness flag (IBool) and covered columns |
IForeignKey |
Pure.RelationalSchema.Abstractions.ForeignKey |
Foreign key — referencing and referenced table/column pairs |
Design Principles
- Immutable — every member is a read-only property; there are no setters or mutating methods.
- Composable — interfaces compose through
IEnumerable<T>collections, allowing traversal without committing to a concrete collection type. - AOT-compatible — the library sets
IsAotCompatible=trueand contains no reflection or code generation.
Dependencies
Pure.Primitives.Abstractions— base interfaces for the Pure ecosystem — immutable, composable abstractions over .NET primitive types (IString,IBool,INumber<T>, and more).
Target Frameworks
- .NET 7
- .NET 8
- .NET 9
- .NET 10
- .NET 11
Installation
dotnet add package Pure.RelationalSchema.Abstractions
Usage
using Pure.RelationalSchema.Abstractions.Schema;
using Pure.RelationalSchema.Abstractions.Table;
using Pure.RelationalSchema.Abstractions.Column;
void PrintSchema(ISchema schema)
{
Console.WriteLine(schema.Name.Value);
foreach (ITable table in schema.Tables)
{
Console.WriteLine($" {table.Name.Value}");
foreach (IColumn column in table.Columns)
Console.WriteLine($" {column.Name.Value} {column.Type.Name.Value}");
}
foreach (IForeignKey fk in schema.ForeignKeys)
{
Console.WriteLine(
$" FK: {fk.ReferencingTable.Name.Value} -> {fk.ReferencedTable.Name.Value}");
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. net11.0 is compatible. |
-
net10.0
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net11.0
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net7.0
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net8.0
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net9.0
- Pure.Primitives.Abstractions (>= 4.4.0)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on Pure.RelationalSchema.Abstractions:
| Package | Downloads |
|---|---|
|
Pure.RelationalSchema
Package Description |
|
|
Pure.RelationalSchema.HashCodes
Package Description |
|
|
Pure.RelationalSchema.Storage.Abstractions
Package Description |
|
|
Pure.RelationalSchema.Random
Package Description |
|
|
Pure.RelationalSchema.RichRelationalModel.Abstractions
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.