I have referred this document and installed csv driver and gave connection to csv driver.
Previously we have used csv files and to read the data from csv files we have used the following code.
new File("path of the csv file").splitEachLine(",") {
fields ->//fields[0]-->extracted first column from the csv file
}
Now we want to use csv driver database to fetch the data from the csv file. I want to know how to modify the above code to fetch the columns of the csv file and what all the libraries I have to import for the csv driver.