PostgresDatabaseResource
Handle
interface PostgresDatabaseResource extends IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithParent, PostgresServerResource]], IValueProvider, IValueWithReferences { readonly connectionStringExpression: ReferenceExpression; readonly databaseName: string; readonly jdbcConnectionString: ReferenceExpression; readonly parent: PostgresServerResource; readonly uriExpression: ReferenceExpression; withCreationScript(script: string): PostgresDatabaseResource; withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, containerName?: string): PostgresDatabaseResource;}7 members
Properties
property
connectionStringExpressionReferenceExpressiongetGets the connection string expression for the Postgres database.
property
databaseNamestringgetGets the database name.
property
jdbcConnectionStringReferenceExpressiongetGets the JDBC connection string for the PostgreSQL database.
property
parentPostgresServerResourcegetGets the parent PostgresSQL container resource.
property
uriExpressionReferenceExpressiongetGets the connection URI expression for the PostgreSQL database.
Methods
Defines the SQL script used to create the database.
withCreationScript(script: string): PostgresDatabaseResourceParameters
scriptstringReturns
PostgresDatabaseResourceAdds 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
PostgresDatabaseResource