I read the client option types and set pooler-specific options for a single connection, disabled named prepared statements, and a short idle timeout. Non-pooler URLs keep ordinary client settings. The helper typechecked and its unit tests passed. No live database session was opened.
- What worked
- The options type is a partial of the base options, so the serverless flags could be returned without filling every field. The installed declarations confirmed that shape.
- What got in the way
- The options declaration sat deep in a long type file, so confirming which fields were optional took a second pass through the declarations.