# \#postgres-nio

**URL:** https://forums.swift.org/tag/postgres-nio/685.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [How to obtain error from postgres-nio?](https://forums.swift.org/t/how-to-obtain-error-from-postgres-nio/81084)

<div class="topic-metadata">

**Author:** [@Q-Bert](https://forums.swift.org/u/Q-Bert)\
**Replies:** 0\
**Last updated:** [July 13, 2025, 11:24pm UTC](https://forums.swift.org/t/how-to-obtain-error-from-postgres-nio/81084 "2025-07-13T23:24:05Z")

</div>

This is a follow up to an earlier post. I don't know the proper etiquette to follow in these cases but thought I'd post in the Vapor category this time around considering the package/module involved. I've read and re-r…

---

## [Does Postgres-Nio not report errors?](https://forums.swift.org/t/does-postgres-nio-not-report-errors/81013)

<div class="topic-metadata">

**Author:** [@Q-Bert](https://forums.swift.org/u/Q-Bert)\
**Replies:** 4\
**Last updated:** [July 10, 2025, 11:27pm UTC](https://forums.swift.org/t/does-postgres-nio-not-report-errors/81013 "2025-07-10T23:27:22Z")

</div>

Note: Not sure if this is the correct venue (or category) for my questions. It feels like I am missing something!! How can the following postgres-nio API calls claim to never fail? Notice the lack of error reporting me…

---

## [PostgresKit: No way to set transaction Isolation level?](https://forums.swift.org/t/postgreskit-no-way-to-set-transaction-isolation-level/78033)

<div class="topic-metadata">

**Author:** [@kwiky](https://forums.swift.org/u/kwiky)\
**Replies:** 0\
**Last updated:** [February 22, 2025, 3:31pm UTC](https://forums.swift.org/t/postgreskit-no-way-to-set-transaction-isolation-level/78033 "2025-02-22T15:31:35Z")

</div>

I’ve browsed the PostgresKit documentation and haven’t found any built-in API that lets you directly set the transaction isolation level. I’ve looked for a transaction method with an isolation parameter—something like tr…

---

## [PostgresNIOMacros: Create prepared statements from decorated SQL](https://forums.swift.org/t/postgresniomacros-create-prepared-statements-from-decorated-sql/75042)

<div class="topic-metadata">

**Author:** [@lovetodream](https://forums.swift.org/u/lovetodream)\
**Replies:** 9\
**Last updated:** [October 4, 2024, 11:44am UTC](https://forums.swift.org/t/postgresniomacros-create-prepared-statements-from-decorated-sql/75042 "2024-10-04T11:44:40Z")

</div>

At ServerSideSwift @fabianfett pitched me the idea to use a Macro for Prepared Statements in PostgresNIO. The @Statement macro can generate a prepared statement with columns and binds by providing a slightly modified SQ…

---

## [Database Configuration Middleware](https://forums.swift.org/t/database-configuration-middleware/62441)

<div class="topic-metadata">

**Author:** [@Jstaud](https://forums.swift.org/u/Jstaud)\
**Replies:** 7\
**Last updated:** [May 4, 2023, 12:47am UTC](https://forums.swift.org/t/database-configuration-middleware/62441 "2023-05-04T00:47:30Z")

</div>

So I'm attempting to write a middleware method that can provide the main application with a database connection declared using the requesting user's credentials that are pulled from a top-level database. I'm building out…

---

## [PSQLError error 1 on Lambda Function](https://forums.swift.org/t/psqlerror-error-1-on-lambda-function/69498)

<div class="topic-metadata">

**Author:** [@dexter](https://forums.swift.org/u/dexter)\
**Replies:** 3\
**Last updated:** [January 18, 2024, 9:59pm UTC](https://forums.swift.org/t/psqlerror-error-1-on-lambda-function/69498 "2024-01-18T21:59:06Z")

</div>

We recently spun up a new production environment for a project that deploys Swift to lambda functions than connect to an Aurora RDS cluster. Our application is single-tenant, so we have several other production environm…

---

## [How to create a \`PostgresData\` for one of Postgres' \`point\` types?](https://forums.swift.org/t/how-to-create-a-postgresdata-for-one-of-postgres-point-types/56939)

<div class="topic-metadata">

**Author:** [@chrisbia](https://forums.swift.org/u/chrisbia)\
**Replies:** 4\
**Last updated:** [May 4, 2022, 12:43pm UTC](https://forums.swift.org/t/how-to-create-a-postgresdata-for-one-of-postgres-point-types/56939 "2022-05-04T12:43:28Z")

</div>

Currently there are convenience initializers for creating PostgresDatas for commonly used types. That's not the case for Postgres' point type. The initializer for a PostgresData looks like this: public init( type: P…
