Class MetaStorage

java.lang.Object
org.pgcodekeeper.core.schema.meta.MetaStorage
All Implemented Interfaces:
Serializable

public final class MetaStorage extends Object implements Serializable
Storage and management system for database metadata objects. Handles serialization, deserialization, and caching of system objects for different PostgreSQL versions.
See Also:
  • Field Details

  • Constructor Details

    • MetaStorage

      public MetaStorage()
  • Method Details

    • addMetaChild

      public void addMetaChild(MetaStatement meta)
      Adds a metadata statement to this storage.
      Parameters:
      meta - the metadata statement to add
    • serialize

      public static void serialize(String path, String url) throws IOException, InterruptedException
      Serializes system objects from a database connection to a file.
      Parameters:
      path - the output file path
      url - the database connection URL
      Throws:
      IOException - if an I/O error occurs
      InterruptedException - if the operation is interrupted