Class PgWorkDirs
java.lang.Object
org.pgcodekeeper.core.database.pg.project.PgWorkDirs
Directory structure definitions for PostgreSQL project loader.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the directory name for a PostgreSQL database object type.static PathGets the relative file path for a PostgreSQL database statement.static PathgetRelativeFolderPath(IStatement st, Path baseDir) Gets the relative filesystem path for a PostgreSQL database statement.
-
Field Details
-
SCHEMA
- See Also:
-
-
Method Details
-
getDirectoryNames
-
getDirLoadOrder
-
getRelativeFolderPath
Gets the relative filesystem path for a PostgreSQL database statement.- Parameters:
st- the database statementbaseDir- the base directory path- Returns:
- relative path where the statement should be stored
- Throws:
IllegalStateException- if the object type is not supported
-
getRelativeFilePath
Gets the relative file path for a PostgreSQL database statement.- Parameters:
st- the database statement- Returns:
- relative path for the statement's file
-
getDirectoryNameForType
Gets the directory name for a PostgreSQL database object type.- Parameters:
type- the database object type- Returns:
- directory name for the type
- Throws:
IllegalStateException- if the object type is not supported
-