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