Class CsvImportOptions (0.7.0)

CsvImportOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options for importing data in CSV format.

Attributes

Name Description
table str
Required. The database table to import CSV file into.
columns MutableSequence[str]
Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
field_delimiter str
Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
quote_character str
Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
escape_character str
Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.