AuroraDB (PostgreSQL)

This page contains the latest information of the releases of RepoDb.AuroraDb.PostgreSql library.

View the NuGet package here or download it directly here.

RepoDb.AuroraDb.PostgreSql (v0.0.1-alpha1) - Preview

Released: September 27, 2026

New

First (alpha) release of the dedicated Amazon Aurora PostgreSQL provider for RepoDB, built on top of RepoDb.Connector.AuroraDb.Npgsql — an ADO.NET connector whose AuroraDbConnection wraps Npgsql inside the AWS Advanced .NET Data Provider Wrapper, and exposes AuroraDb-prefixed objects (AuroraDbConnection, AuroraDbParameter, AuroraDbType, etc.). Aurora PostgreSQL is PostgreSQL-compatible, so the package generates the same SQL as RepoDb.PostgreSql.

What’s included

Known limitations (v1)

  • RepoDb.Connector.AuroraDb.Npgsql is a prerelease package (v0.0.1-alpha1); its public API (AuroraDbConnection, AuroraDbType, etc.) may still change before it reaches a stable release.
  • Because AuroraDbConnection wraps Npgsql inside the AWS Advanced .NET Data Provider Wrapper, opening a connection runs Aurora-detection queries (such as SELECT 1 FROM pg_catalog.aurora_replica_status() LIMIT 1) against the server. On a non-Aurora PostgreSQL server, that probe fails on every connection open and is logged as a server error — this is not something RepoDB can suppress.
  • On a server that is not an Aurora cluster, a connection enlisted in a System.Transactions.TransactionScope fails on its first operation, because the failed Aurora-detection probe runs inside — and aborts — the ambient transaction. Use an explicit connection.BeginTransaction() instead of TransactionScope unless the target is a genuine Aurora cluster.
  • The spatial (geometry, geography) types have no CLR representation without an Npgsql plugin such as Npgsql.NetTopologySuite (not referenced by this package); reading a geometry/geography column into a typed property throws InvalidCastException. Well-Known Text can still be exchanged manually via ExecuteQuery/ExecuteScalar with the ST_GeomFromText/ST_GeogFromText/ST_AsText PostGIS functions.
  • A PostgreSQL enum column needs its mapping registered through NpgsqlConnection.GlobalTypeMapper.MapEnum<T>() before the first connection for that connection string is opened — AuroraDbConnection builds its NpgsqlConnection internally, so an NpgsqlDataSourceBuilder-based mapping cannot be applied to it directly.
  • InsertAll’s generated key retrieval assumes the RETURNING clause of a multi-row INSERT returns rows in the same order they were listed — this has not been independently verified against an Aurora cluster.

Bumps

  • Referenced the RepoDb package v1.17.0-alpha3.
  • References the RepoDb.Connector.AuroraDb.Npgsql package v0.0.1-alpha1.
  • References the Npgsql package v10.0.3 directly (pinned above the connector’s own v9.0.5 dependency, so DATE/TIME columns read as DateOnly/TimeOnly).