Class ChWorkDirs

java.lang.Object
org.pgcodekeeper.core.database.ch.project.ChWorkDirs

public final class ChWorkDirs extends Object
Directory structure definitions for ClickHouse project loader.
  • Field Details

  • Method Details

    • getDirectoryNames

      public static List<String> getDirectoryNames()
    • getDirLoadOrder

      public static Set<DbObjType> getDirLoadOrder()
    • getRelativeFolderPath

      public static Path getRelativeFolderPath(IStatement st, Path baseDir)
      Gets the relative filesystem path for a ClickHouse database statement.
      Parameters:
      st - the database statement
      baseDir - the base directory path
      Returns:
      relative path where the statement should be stored
      Throws:
      IllegalStateException - if the object type is not supported
    • getRelativeFilePath

      public static Path getRelativeFilePath(IStatement st)
      Gets the relative file path for a ClickHouse database statement.
      Parameters:
      st - the database statement
      Returns:
      relative path for the statement's file
    • getDirectoryNameForType

      public static String getDirectoryNameForType(DbObjType type)
      Gets the directory name for a ClickHouse database object type.
      Parameters:
      type - the database object type
      Returns:
      directory name for the type
      Throws:
      IllegalStateException - if the object type is not supported