Skip to content

Commit

Permalink
Added logic to detect connector class(MySQL or PostgreSQL) and change…
Browse files Browse the repository at this point in the history
… log messages.
  • Loading branch information
subkanthi committed Jan 22, 2025
1 parent 9422d67 commit 80506f1
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.altinity.clickhouse.sink.connector.common;

import io.debezium.metadata.ConnectorDescriptor;



public enum ConnectorType {
MYSQL("mysql"),
POSTGRES("postgres");

private final String value;

ConnectorType(String value) {
this.value = value;
}

public String getValue() {
return value;
}

public static ConnectorType fromString(String value) {

ConnectorDescriptor.getDisplayNameForConnectorClass(value);
return ConnectorType.valueOf(value);
}
}

0 comments on commit 80506f1

Please sign in to comment.