Konnektr.Npgsql.Age 0.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Konnektr.Npgsql.Age --version 0.2.1
                    
NuGet\Install-Package Konnektr.Npgsql.Age -Version 0.2.1
                    
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="Konnektr.Npgsql.Age" Version="0.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Konnektr.Npgsql.Age" Version="0.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Konnektr.Npgsql.Age" />
                    
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 Konnektr.Npgsql.Age --version 0.2.1
                    
#r "nuget: Konnektr.Npgsql.Age, 0.2.1"
                    
#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 Konnektr.Npgsql.Age@0.2.1
                    
#: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=Konnektr.Npgsql.Age&version=0.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Konnektr.Npgsql.Age&version=0.2.1
                    
Install as a Cake Tool

Konnektr.Npgsql.Age

Nuget

What is Apache AGE?

Apache AGE is an open-source extension for PostgreSQL which provides it with the capabilities of a graph database. This package is a plugin for the Npgsql library which allows you to interact with Apache AGE from C#.

Quickstart

Here's a simple example to get you started:

using Npgsql;
using Npgsql.Age;
using Npgsql.Age.Types;

var connectionString = "Host=server;Port=5432;Username=user;Password=pass;Database=sample1";

var dataSourceBuilder = new NpgsqlDataSourceBuilder(connString);
await using var dataSource = dataSourceBuilder
    .UseAge()
    .Build();

// Create graph
await using (var cmd = dataSource.CreateGraphCommand("graph1"))
{
    await cmd.ExecuteNonQueryAsync();
}

// Add vertices
await using (var cmd = dataSource.CreateCypherCommand("graph1", "CREATE (:Person {age: 23}), (:Person {age: 78})"))
{
    await cmd.ExecuteNonQueryAsync();
}

// Retrieve vertices
await using (var cmd = dataSource.CreateCypherCommand(
    "graph1", "MATCH (n:Person) RETURN n"))
await using (var reader = await cmd.ExecuteReaderAsync())
{
    while (await reader.ReadAsync())
    {
        var agtypeResult = reader.GetValue<Agtype>(0);
        Vertex person = agtypeResult.GetVertex();
        Console.WriteLine(person);
    }
}

Acknowledgements

  • This project is a fork of Apache AGE.
  • The project relies heavily on the work of the Npgsql team.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

  • net8.0

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Konnektr.Npgsql.Age:

Package Downloads
Konnektr.AgeDigitalTwins

Digital Twins SDK for Apache Age

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.8 260 9/3/2025
1.0.7 189 8/11/2025
1.0.6 357 7/16/2025
1.0.5 841 4/14/2025
1.0.4 515 2/11/2025
1.0.3 304 1/6/2025
1.0.2 128 1/6/2025
1.0.1 114 1/6/2025
0.4.0 432 12/6/2024
0.3.9 131 12/5/2024
0.3.8 126 12/5/2024
0.3.7 150 12/3/2024
0.3.6 108 12/3/2024
0.3.5 104 12/3/2024
0.3.4 124 12/3/2024
0.3.3 116 11/30/2024
0.3.2 163 11/30/2024
0.3.1 114 11/30/2024
0.3.0 116 11/30/2024
0.2.13 168 11/26/2024
0.2.12 112 11/26/2024
0.2.11 108 11/26/2024
0.2.10 125 11/26/2024
0.2.9 111 11/26/2024
0.2.8 107 11/26/2024
0.2.7 110 11/26/2024
0.2.6 115 11/26/2024
0.2.5 111 11/26/2024
0.2.4 180 11/25/2024
0.2.3 117 11/18/2024
0.2.2 109 11/16/2024
0.2.1 114 11/16/2024
0.2.0 106 11/16/2024
0.1.8 123 11/13/2024