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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pure.RelationalSchema.Abstractions" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pure.RelationalSchema.Abstractions" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Pure.RelationalSchema.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pure.RelationalSchema.Abstractions --version 1.3.0
                    
#r "nuget: Pure.RelationalSchema.Abstractions, 1.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Pure.RelationalSchema.Abstractions@1.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pure.RelationalSchema.Abstractions&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Pure.RelationalSchema.Abstractions&version=1.3.0
                    
Install as a Cake Tool

Pure.RelationalSchema.Abstractions

Immutable, composable interfaces for relational database schema metadata — part of the Pure ecosystem.

.NET build & test Build and Deploy NuGet License: MIT

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=true and 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
1.3.0 529 11/11/2026
1.2.0 10,872 12/1/2025
1.1.0 1,320 11/2/2025
1.0.0 2,750 9/26/2025
1.0.0-preview.0.1.0 164 9/26/2025
0.2.1 1,085 8/22/2025
0.2.0 941 8/21/2025
0.1.3 742 6/24/2025
0.1.2 482 6/24/2025
0.1.1 230 6/24/2025
0.1.0 275 6/23/2025