PostgresDatabaseResource
Handle TypeScript
interface PostgresDatabaseResource extends IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithParent, 0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]], IValueProvider, IValueWithReferences { readonly connectionStringExpression: ReferenceExpression; readonly databaseName: string; readonly jdbcConnectionString: ReferenceExpression; readonly name: string; readonly parent: PostgresServerResource; readonly uriExpression: ReferenceExpression; withCreationScript(script: string): PostgresDatabaseResource; withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => void, containerName?: string): PostgresDatabaseResource;} 8 members
Properties
property
connectionStringExpression ReferenceExpression get Gets the ConnectionStringExpression property
property
databaseName string get Gets the DatabaseName property
property
jdbcConnectionString ReferenceExpression get Gets the JdbcConnectionString property
property
name string get Gets the Name property
property
parent PostgresServerResource get Gets the Parent property
property
uriExpression ReferenceExpression get Gets the UriExpression property
Methods
method
withCreationScript builder Defines the SQL script for database creation
withCreationScript(script: string): PostgresDatabaseResourceParameters
script string Returns
PostgresDatabaseResource method
withPostgresMcp builder Adds Postgres MCP server
withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => void, containerName?: string): PostgresDatabaseResourceParameters
configureContainer (obj: PostgresMcpContainerResource) => void optional containerName string optional Returns
PostgresDatabaseResource