Class: Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb

Overview

Options for exporting data as CSV. MySQL and PostgreSQL instances only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CsvExportOptions

Returns a new instance of CsvExportOptions.



1563
1564
1565
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1563

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#escape_characterString

Specifies the character that should appear before a data character that needs to be escaped. Corresponds to the JSON property escapeCharacter

Returns:

  • (String)


1539
1540
1541
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1539

def escape_character
  @escape_character
end

#fields_terminated_byString

Specifies the character that separates columns within each row (line) of the file. Corresponds to the JSON property fieldsTerminatedBy

Returns:

  • (String)


1545
1546
1547
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1545

def fields_terminated_by
  @fields_terminated_by
end

#lines_terminated_byString

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

Returns:

  • (String)


1551
1552
1553
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1551

def lines_terminated_by
  @lines_terminated_by
end

#quote_characterString

Specifies the quoting character to be used when a data value is quoted. Corresponds to the JSON property quoteCharacter

Returns:

  • (String)


1556
1557
1558
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1556

def quote_character
  @quote_character
end

#select_queryString

The select query used to extract the data. Corresponds to the JSON property selectQuery

Returns:

  • (String)


1561
1562
1563
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1561

def select_query
  @select_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1568
1569
1570
1571
1572
1573
1574
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1568

def update!(**args)
  @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)
  @select_query = args[:select_query] if args.key?(:select_query)
end