Altavec.Aspire.Hosting.PostgreSQL.Extensions
9.3.1
See the version list below for details.
dotnet add package Altavec.Aspire.Hosting.PostgreSQL.Extensions --version 9.3.1
NuGet\Install-Package Altavec.Aspire.Hosting.PostgreSQL.Extensions -Version 9.3.1
<PackageReference Include="Altavec.Aspire.Hosting.PostgreSQL.Extensions" Version="9.3.1" />
<PackageVersion Include="Altavec.Aspire.Hosting.PostgreSQL.Extensions" Version="9.3.1" />
<PackageReference Include="Altavec.Aspire.Hosting.PostgreSQL.Extensions" />
paket add Altavec.Aspire.Hosting.PostgreSQL.Extensions --version 9.3.1
#r "nuget: Altavec.Aspire.Hosting.PostgreSQL.Extensions, 9.3.1"
#addin nuget:?package=Altavec.Aspire.Hosting.PostgreSQL.Extensions&version=9.3.1
#tool nuget:?package=Altavec.Aspire.Hosting.PostgreSQL.Extensions&version=9.3.1
Altavec.Aspire.Hosting.PostgreSQL.Extensions library
This integration contains extensions for the PostgreSQL hosting package for .NET Aspire.
Getting started
Install the package
In your AppHost project, install the Altavec .NET Aspire PostgreSQL Hosting library with NuGet:
dotnet add package Altavec.Aspire.Hosting.PostgreSQL.Extensions
Usage examples
Adding Trusted Language Extensions for PostgreSQL (pg_tle)
In the AppHost.cs file of AppHost
, configure a PostgreSQL resource with TLE using the following methods:
var db = builder
.AddPostgres("pgsql")
.WithTle()
.AddDatabase("mydb");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(db);
Adding a TLE extension to a database
This can compile an example extension from the pg_tle
repository for use in the database.
The available extensions are
In the AppHost.cs file of AppHost
, configure a PostgreSQL database resource to use a TLE extension using the following method:
_ = db.WithTleExtension("uuid_v7");
Adding PL/Rust
In the AppHost.cs file of AppHost
, configure a PostgreSQL resource with PL/Rust using the following methods:
var db = builder
.AddPostgres("pgsql")
.WithPlRust()
.AddDatabase("mydb");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(db);
Adding PL/.NET
In the AppHost.cs file of AppHost
, configure a PostgreSQL resource with PL/.NET using the following methods:
var db = builder
.AddPostgres("pgsql")
.WithPlDotnet()
.AddDatabase("mydb");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(db);
*Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net8.0
- Altavec.Aspire.Hosting.Containers.Extensions (>= 9.3.1)
- Altavec.Aspire.Hosting.ZScaler (>= 9.3.1)
- Aspire.Hosting.PostgreSQL (>= 9.3.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Altavec.Aspire.Hosting.PostgreSQL.Extensions:
Package | Downloads |
---|---|
Altavec.Aspire.Hosting.PostGIS
PostGIS support for .NET Aspire. |
GitHub repositories
This package is not used by any popular GitHub repositories.