withPostgresMcp
Method
interface PostgresDatabaseResource { // ... omitted for brevity withPostgresMcp( configureContainer?: callback, containerName?: string): PostgresDatabaseResource;}Signature
method
withPostgresMcpbuilderAdds a Postgres MCP server container and configures it to connect to the database represented by `builder`.
withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, containerName?: string): PostgresDatabaseResourceParameters
configureContainer(obj: PostgresMcpContainerResource) => Promise<void>optionalcontainerNamestringoptionalReturns
PostgresDatabaseResourceApplies to
This method applies to the following types: