Konnektr.Npgsql.Age 0.3.9

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

// Install Konnektr.Npgsql.Age as a Cake Tool
#tool nuget:?package=Konnektr.Npgsql.Age&version=0.3.9                

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

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.3 213 1/6/2025
1.0.2 85 1/6/2025
1.0.1 73 1/6/2025
0.4.0 406 12/6/2024
0.3.9 108 12/5/2024
0.3.8 101 12/5/2024
0.3.7 127 12/3/2024
0.3.6 85 12/3/2024
0.3.5 80 12/3/2024
0.3.4 97 12/3/2024
0.3.3 89 11/30/2024
0.3.2 138 11/30/2024
0.3.1 86 11/30/2024
0.3.0 93 11/30/2024
0.2.13 137 11/26/2024
0.2.12 89 11/26/2024
0.2.11 83 11/26/2024
0.2.10 100 11/26/2024
0.2.9 85 11/26/2024
0.2.8 84 11/26/2024
0.2.7 83 11/26/2024
0.2.6 91 11/26/2024
0.2.5 85 11/26/2024
0.2.4 151 11/25/2024
0.2.3 95 11/18/2024
0.2.2 89 11/16/2024
0.2.1 93 11/16/2024
0.2.0 84 11/16/2024
0.1.8 101 11/13/2024