Class MetaStorage
java.lang.Object
org.pgcodekeeper.core.schema.meta.MetaStorage
- All Implemented Interfaces:
Serializable
Storage and management system for database metadata objects.
Handles serialization, deserialization, and caching of system objects
for different PostgreSQL versions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetaChild(MetaStatement meta) Adds a metadata statement to this storage.static voidSerializes system objects from a database connection to a file.
-
Field Details
-
FILE_NAME
Base file name for serialized system objects.- See Also:
-
-
Constructor Details
-
MetaStorage
public MetaStorage()
-
-
Method Details
-
addMetaChild
Adds a metadata statement to this storage.- Parameters:
meta- the metadata statement to add
-
serialize
Serializes system objects from a database connection to a file.- Parameters:
path- the output file pathurl- the database connection URL- Throws:
IOException- if an I/O error occursInterruptedException- if the operation is interrupted
-