package com.wordcount.example;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;

import backtype.storm.tuple.Tuple;

public class VerticaInsert {
    Statement stmt=null;
    int result=0;
    
    public int insertRow(Connection conn,Tuple input) throws SQLException{
		
		PreparedStatement ps=conn.prepareStatement("INSERT INTO NGOM " + "VALUES ("+input+")");
        int result=ps.executeUpdate();
    	
    	return result;
    	
    }
    
    

}
