DELETE FROM api_parameter_info WHERE param_id = #{connectionId} INSERT INTO api_connection_info ( connection_id , "ttl" , "url" , "type" , "depth" , "rowdata_column_index" , "start_row_index" , "start_cell_index" , data_post_id ) VALUES ( #{connectionId} , #{title} , #{url} , #{type} , #{depth} , #{rowDataColumnIndex} , #{startRowIndex} , #{startCellIndex} , #{dataset_post_id} ) ON CONFLICT(connection_id) DO UPDATE SET "ttl" = #{title} , "url" = #{url} , "type" = #{type} , "depth" = #{depth} , "rowdata_column_index" = #{rowDataColumnIndex} , "start_row_index" = #{startRowIndex} , "start_cell_index" = #{startCellIndex} , data_post_id = #{dataset_post_id} INSERT INTO api_parameter_info ( "connection_id" , "index" , "key" , "value" , "disable_decode" , "date_form" , "add_month" ) VALUES ( #{paramId} , #{index} ::INTEGER , #{key} , #{value} , #{disableDecode} ::INTEGER , #{dateForm} ::INTEGER , #{addMonth} ::INTEGER ) DELETE FROM api_connection_info WHERE connection_id= #{groupId} DELETE FROM api_parameter_info WHERE connection_id = #{groupId}