PostgresDatabaseResource.WithPostgresMcp
Method
type PostgresDatabaseResource interface { // ... omitted for brevity WithPostgresMcp(options ...*WithPostgresMcpOptions) PostgresDatabaseResource}Signature
method
WithPostgresMcp builderAdds a Postgres MCP server container and configures it to connect to the database represented by
builder.WithPostgresMcp(options ...*WithPostgresMcpOptions) PostgresDatabaseResourceParameters
options...*WithPostgresMcpOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithPostgresMcpOptions argument.
ConfigureContainer func(obj PostgresMcpContainerResource) callbackConfiguration callback for the Postgres MCP container resource.ContainerName *stringThe name of the container (optional).Returns
PostgresDatabaseResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: