class Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions
Options for importing data as CSV.
Attributes
The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data. Corresponds to the JSON property `columns` @return [Array<String>]
Specifies the character that should appear before a data character that needs to be escaped. Corresponds to the JSON property `escapeCharacter` @return [String]
Specifies the character that separates columns within each row (line) of the file. Corresponds to the JSON property `fieldsTerminatedBy` @return [String]
This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values. Corresponds to the JSON property `linesTerminatedBy` @return [String]
Specifies the quoting character to be used when a data value is quoted. Corresponds to the JSON property `quoteCharacter` @return [String]
The table to which CSV data is imported. Corresponds to the JSON property `table` @return [String]
Public Class Methods
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 1620 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 1625 def update!(**args) @columns = args[:columns] if args.key?(:columns) @escape_character = args[:escape_character] if args.key?(:escape_character) @fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by) @lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by) @quote_character = args[:quote_character] if args.key?(:quote_character) @table = args[:table] if args.key?(:table) end