Package liquibase.snapshot.jvm
Class SchemaSnapshotGeneratorSnowflake
java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.SchemaSnapshotGenerator
liquibase.snapshot.jvm.SchemaSnapshotGeneratorSnowflake
- All Implemented Interfaces:
SnapshotGenerator
-
Field Summary
Fields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
getDatabaseSchemaNames
(Database database) Fetches an array of Strings with the schema names in the database.int
getPriority
(Class<? extends DatabaseObject> objectType, Database database) Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g.Methods inherited from class liquibase.snapshot.jvm.SchemaSnapshotGenerator
addTo, snapshotObject, toCatalogAndSchema
Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, replaces, shouldAddTo, snapshot, updateListeners
-
Constructor Details
-
SchemaSnapshotGeneratorSnowflake
public SchemaSnapshotGeneratorSnowflake()
-
-
Method Details
-
getPriority
Description copied from interface:SnapshotGenerator
Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g. Table, Index, View etc.) in the DBMS database (e.g. Oracle, Postgres, HyperSQL etc.) A return priority of > 0 will be interpreted as capable. The highest priority for an objectType-database combination wins.- Specified by:
getPriority
in interfaceSnapshotGenerator
- Overrides:
getPriority
in classJdbcSnapshotGenerator
- Parameters:
objectType
- The object type we are asked to snapshotdatabase
- The DBMS for which the snapshotting should be done- Returns:
- An integer of PRIORITY_... constants indicating our capability and willingness to snapshot
-
getDatabaseSchemaNames
Description copied from class:SchemaSnapshotGenerator
Fetches an array of Strings with the schema names in the database.- Overrides:
getDatabaseSchemaNames
in classSchemaSnapshotGenerator
- Parameters:
database
- The database from which to get the schema names- Returns:
- An array of schema name Strings (May be an empty array)
- Throws:
SQLException
- propagated java.sql.SQLExceptionDatabaseException
- if a different problem occurs during the DBMS-specific code
-