Class: Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions
 
 
- 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 importing data as CSV.
Instance Attribute Summary collapse
- 
  
    
      #columns  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The columns to which CSV data is imported.
 - 
  
    
      #escape_character  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Specifies the character that should appear before a data character that needs to be escaped.
 - 
  
    
      #fields_terminated_by  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Specifies the character that separates columns within each row (line) of the file.
 - 
  
    
      #lines_terminated_by  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This is used to separate lines.
 - 
  
    
      #quote_character  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Specifies the quoting character to be used when a data value is quoted.
 - 
  
    
      #table  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The table to which CSV data is imported.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CsvImportOptions 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CsvImportOptions.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ CsvImportOptions
Returns a new instance of CsvImportOptions.
      2154 2155 2156  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2154 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#columns ⇒ Array<String>
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
      2124 2125 2126  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2124 def columns @columns end  | 
  
#escape_character ⇒ String
Specifies the character that should appear before a data character that needs
to be escaped.
Corresponds to the JSON property escapeCharacter
      2130 2131 2132  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2130 def escape_character @escape_character end  | 
  
#fields_terminated_by ⇒ String
Specifies the character that separates columns within each row (line) of the
file.
Corresponds to the JSON property fieldsTerminatedBy
      2136 2137 2138  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2136 def fields_terminated_by @fields_terminated_by end  | 
  
#lines_terminated_by ⇒ 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
      2142 2143 2144  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2142 def lines_terminated_by @lines_terminated_by end  | 
  
#quote_character ⇒ String
Specifies the quoting character to be used when a data value is quoted.
Corresponds to the JSON property quoteCharacter
      2147 2148 2149  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2147 def quote_character @quote_character end  | 
  
#table ⇒ String
The table to which CSV data is imported.
Corresponds to the JSON property table
      2152 2153 2154  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2152 def table @table end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2159 2160 2161 2162 2163 2164 2165 2166  | 
    
      # File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2159 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  |