Moberg.Beacon.Core.PostgreSql 5.0.0

dotnet add package Moberg.Beacon.Core.PostgreSql --version 5.0.0
                    
NuGet\Install-Package Moberg.Beacon.Core.PostgreSql -Version 5.0.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="Moberg.Beacon.Core.PostgreSql" Version="5.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Moberg.Beacon.Core.PostgreSql" Version="5.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Moberg.Beacon.Core.PostgreSql" />
                    
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 Moberg.Beacon.Core.PostgreSql --version 5.0.0
                    
#r "nuget: Moberg.Beacon.Core.PostgreSql, 5.0.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 Moberg.Beacon.Core.PostgreSql@5.0.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=Moberg.Beacon.Core.PostgreSql&version=5.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Moberg.Beacon.Core.PostgreSql&version=5.0.0
                    
Install as a Cake Tool

Moberg.Beacon.Core.PostgreSql

Stores Beacon's own metadata in PostgreSQL. This package holds the PostgreSQL EF Core migrations and the UsePostgreSql registration. It does not let Beacon query PostgreSQL as a data source; that is Moberg.Beacon.Connector.PostgreSql.

Requirements

  • The pgvector extension. A Beacon migration runs CREATE EXTENSION IF NOT EXISTS vector, so either the migrating login can create it or it is already installed. On Azure Database for PostgreSQL Flexible Server, allow VECTOR in azure.extensions.
  • Tables live in the fixed beacon schema, with snake_case names.

Install

dotnet add package Moberg.Beacon.Core.PostgreSql

Register

UsePostgreSql ends the BeaconBuilder chain, so call connectors, ExposeDbContext and ExposeDocs before it.

using Beacon.Core;
using Beacon.Core.PostgreSql;

builder.Services
    .AddBeaconServices(builder.Configuration, options =>
    {
        options.AddBeaconScheduler<MyBeaconScheduler>();
    })
    .UsePostgreSql(); // reads ConnectionStrings:BeaconContext

var app = builder.Build();

// Beacon does not migrate itself: create the schema if missing, then apply pending migrations.
Beacon.Core.ServiceConfiguration.UseBeacon(app.Services, createSchema: true);

Overloads

Overload Search path
UsePostgreSql() Connection string from ConnectionStrings:BeaconContext. Beacon builds its own NpgsqlDataSource with SearchPath = beacon,public.
UsePostgreSql(string connectionString, string schema = "beacon") Same, with the connection string passed in.
UsePostgreSql(NpgsqlDataSource dataSource, string schema = "beacon") Your data source (for example one using Entra tokens). Beacon runs SET search_path TO "beacon", public on each connection it opens.
UsePostgreSql(Func<IServiceProvider, NpgsqlDataSource> factory, string schema = "beacon") Resolved once from the root provider, e.g. sp => sp.GetRequiredService<NpgsqlDataSource>() for an Aspire data source. Same per-connection search path.

public follows beacon so a pgvector already installed in public resolves. A host-owned data source must keep connection reset on (no No Reset On Close) and must not use Multiplexing. It needs no UseVector().

The schema argument and Beacon:Schema accept only beacon; any other value throws at registration.

Documentation

License

Dual-licensed under AGPL-3.0 or a commercial license. See LICENSING.md.

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

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
5.0.0 0 10/21/2026
4.6.0.2 46 10/20/2026
4.6.0.1 45 10/20/2026
4.6.0 45 10/20/2026
4.5.0.3 86 10/8/2026
4.5.0.2 98 10/7/2026
4.5.0.1 95 10/5/2026
4.5.0 99 9/28/2026
4.3.0.1 89 9/24/2026
4.3.0 96 9/23/2026
4.2.0.1 99 9/22/2026
4.2.0 105 9/22/2026
4.1.0.1 112 9/11/2026
4.1.0 103 9/11/2026
4.0.0 132 8/20/2026