withDataVolume
Method
interface PostgresServerResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): PostgresServerResource;}Signature
method
withDataVolume builderAdds a named volume for the data folder to a PostgreSQL container resource.
withDataVolume( name?: string, isReadOnly?: boolean): PostgresServerResourceParameters
namestringoptionalisReadOnly booleanoptional= FalseReturns
PostgresServerResource Applies to
This method applies to the following types: