gong commented on code in PR #4241: URL: https://github.com/apache/incubator-inlong/pull/4241#discussion_r875542940
########## inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/source/PostgresSource.java: ########## @@ -0,0 +1,76 @@ +/* + * 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.inlong.manager.client.api.source; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.apache.inlong.manager.common.enums.DataFormat; +import org.apache.inlong.manager.common.enums.SourceType; +import org.apache.inlong.manager.common.pojo.stream.StreamSource; + +/** + * Postgres source. + */ +@Data +@EqualsAndHashCode(callSuper = true) +@AllArgsConstructor +@NoArgsConstructor +@ApiModel("Base configuration for Postgres collection") +public class PostgresSource extends StreamSource { + + @ApiModelProperty(value = "DataSource type", required = true) + private SourceType sourceType = SourceType.POSTGRES; + + @ApiModelProperty("SyncType") + private SyncType syncType = SyncType.INCREMENT; + + @ApiModelProperty("Data format type") + private DataFormat dataFormat = DataFormat.NONE; + + @ApiModelProperty("Db server username") + private String username; + + @ApiModelProperty("Db password") + private String password; + + @ApiModelProperty("DB Server hostname") + private String hostname; + + @ApiModelProperty("DB Server port") + private int port; + + @ApiModelProperty("Database name") + private String dbName; + + @ApiModelProperty("schema info") + private String schema; + + @ApiModelProperty("Data table name list") + private List<String> tableNameList; + + @ApiModelProperty("decoding pulgin name") + private String decodingPluginName; + + @ApiModelProperty("Primary key, needed when data format is csv, json, avro") Review Comment: describe error. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
