Class TiDBDatabaseType

    • Constructor Detail

      • TiDBDatabaseType

        public TiDBDatabaseType()
    • Method Detail

      • getPriority

        public int getPriority()
        Description copied from class: BaseDatabaseType
        When identifying database types, the priority with which this type will be used. High numbers indicate that this type will be used in preference to others.
        Specified by:
        getPriority in interface DatabaseType
        Overrides:
        getPriority in class BaseDatabaseType
      • handlesDatabaseProductNameAndVersion

        public boolean handlesDatabaseProductNameAndVersion​(String databaseProductName,
                                                            String databaseProductVersion,
                                                            Connection connection)
        Description copied from interface: DatabaseType
        Check if this database type handles the connection product name and version. This allows more fine-grained control over which DatabaseType handles which connection. MigrateDB will use the first DatabaseType that returns true for this method.
        Specified by:
        handlesDatabaseProductNameAndVersion in interface DatabaseType
        Overrides:
        handlesDatabaseProductNameAndVersion in class MySQLDatabaseType
        Parameters:
        databaseProductName - The product name returned by the database.
        databaseProductVersion - The product version returned by the database.
        connection - The connection used to connect to the database.
        Returns:
        true if this handles the product name and version, false if not.