Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::ImportContext::SqlCsvImportOptions.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#columns
def columns() -> ::Array<::String>
Returns
- (::Array<::String>) — The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
#columns=
def columns=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
Returns
- (::Array<::String>) — The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
#escape_character
def escape_character() -> ::String
Returns
- (::String) — Specifies the character that should appear before a data character that needs to be escaped.
#escape_character=
def escape_character=(value) -> ::String
Parameter
- value (::String) — Specifies the character that should appear before a data character that needs to be escaped.
Returns
- (::String) — Specifies the character that should appear before a data character that needs to be escaped.
#fields_terminated_by
def fields_terminated_by() -> ::String
Returns
- (::String) — Specifies the character that separates columns within each row (line) of the file.
#fields_terminated_by=
def fields_terminated_by=(value) -> ::String
Parameter
- value (::String) — Specifies the character that separates columns within each row (line) of the file.
Returns
- (::String) — Specifies the character that separates columns within each row (line) of the file.
#lines_terminated_by
def lines_terminated_by() -> ::String
Returns
- (::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.
#lines_terminated_by=
def lines_terminated_by=(value) -> ::String
Parameter
- value (::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.
Returns
- (::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.
#quote_character
def quote_character() -> ::String
Returns
- (::String) — Specifies the quoting character to be used when a data value is quoted.
#quote_character=
def quote_character=(value) -> ::String
Parameter
- value (::String) — Specifies the quoting character to be used when a data value is quoted.
Returns
- (::String) — Specifies the quoting character to be used when a data value is quoted.
#table
def table() -> ::String
Returns
- (::String) — The table to which CSV data is imported.
#table=
def table=(value) -> ::String
Parameter
- value (::String) — The table to which CSV data is imported.
Returns
- (::String) — The table to which CSV data is imported.