/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.paimon.flink;

import org.apache.paimon.catalog.Catalog;
import org.apache.paimon.options.ConfigOption;
import org.apache.paimon.options.ConfigOptions;

/** Options for flink catalog. */
public class FlinkCatalogOptions {

    public static final ConfigOption<String> DEFAULT_DATABASE =
            ConfigOptions.key("default-database")
                    .stringType()
                    .defaultValue(Catalog.DEFAULT_DATABASE);

    public static final ConfigOption<Boolean> DISABLE_CREATE_TABLE_IN_DEFAULT_DB =
            ConfigOptions.key("disable-create-table-in-default-db")
                    .booleanType()
                    .defaultValue(false)
                    .withDescription(
                            "If true, creating table in default database is not allowed. Default is false.");

    public static final ConfigOption<Boolean> LINEAGE_USE_CATALOG_KEY =
            ConfigOptions.key("lineage-use-catalog-key-as-identifier")
                    .booleanType()
                    .defaultValue(false)
                    .withDescription(
                            "Whether to use the 'catalog-key' as the catalog identifier in the lineage dataset name "
                                    + "(i.e., catalog_key.db_name.table_name) when using a JDBC metastore. "
                                    + "If false, the internal Flink catalog name is used instead.");
}
