Manage data persistence and runtime paths
masterUnderstanding the relationship between RuntimePath and DataPath is critical for data persistence:
- RuntimePath: This directory is erased and recreated at every
Start(). It is not suitable for persistent data. - DataPath: To ensure data persists between runs, set
DataPathto a directory located outside of theRuntimePath. - Binary Management: Postgres binaries are downloaded to
BinariesPath. If the directory already exists, the library uses whatever version is present without performing a version check. To run multiple Postgres versions in different tests, ensureBinariesPathis a subdirectory ofRuntimePath.