All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.flink.lakesoul.tool.LakeSoulDDLSinkOptions Maven / Gradle / Ivy

There is a newer version: 2.5.1-flink-1.17
Show newest version
// SPDX-FileCopyrightText: 2023 LakeSoul Contributors
//
// SPDX-License-Identifier: Apache-2.0

package org.apache.flink.lakesoul.tool;

import org.apache.flink.configuration.ConfigOption;
import org.apache.flink.configuration.ConfigOptions;

public class LakeSoulDDLSinkOptions extends LakeSoulSinkOptions{

    public static final ConfigOption SOURCE_DB_TYPE = ConfigOptions
            .key("source_db.db_type")
            .stringType()
            .defaultValue("mysql")
            .withDescription("source database type");

    public static final ConfigOption SOURCE_DB_DB_NAME = ConfigOptions
            .key("source_db.db_name")
            .stringType()
            .noDefaultValue()
            .withDescription("source database name");


    public static final ConfigOption SOURCE_DB_USER = ConfigOptions
            .key("source_db.user")
            .stringType()
            .noDefaultValue()
            .withDescription("source database user_name");

    public static final ConfigOption SOURCE_DB_PASSWORD = ConfigOptions
            .key("source_db.password")
            .stringType()
            .noDefaultValue()
            .withDescription("source database access password");


    public static final ConfigOption SOURCE_DB_HOST = ConfigOptions
            .key("source_db.host")
            .stringType()
            .noDefaultValue()
            .withDescription("source database access host_name");

    public static final ConfigOption SOURCE_DB_PORT = ConfigOptions
            .key("source_db.port")
            .intType()
            .noDefaultValue()
            .withDescription("source database access port");

    public static final ConfigOption SOURCE_DB_EXCLUDE_TABLES = ConfigOptions
            .key("source_db.exclude_tables")
            .stringType()
            .defaultValue("")
            .withDescription("list of source database excluded tables. Comma-Separated string");


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy