(Quick Reference)

import-data

Purpose

The import-data command import data from a comma-separated-value(CSV) data file to preference table (3 columns) or boolean preference table (2 columns).

Examples

grails import-data grails-app/conf/data.csv
grails import-data data.csv 100000

Description

Usage:
grails import-data fileName [numberOfLines]
The import-data command has the following arguments:
  • fileName: This argument is mandatory. The file name specified is relative to the base directory of the project.
  • numberOfLines: This argument is optional. A numeric value is to specify number of lines of data to be imported to the table. All data will be imported if this argument is omitted.