class Google::Apis::DatastreamV1alpha1::MysqlColumn

MySQL Column.

Attributes

collation[RW]

Column collation. Corresponds to the JSON property ‘collation` @return [String]

column_name[RW]

Column name. Corresponds to the JSON property ‘columnName` @return [String]

data_type[RW]

The MySQL data type. Full data types list can be found here: dev.mysql. com/doc/refman/8.0/en/data-types.html Corresponds to the JSON property ‘dataType` @return [String]

length[RW]

Column length. Corresponds to the JSON property ‘length` @return [Fixnum]

nullable[RW]

Whether or not the column can accept a null value. Corresponds to the JSON property ‘nullable` @return [Boolean]

nullable?[RW]

Whether or not the column can accept a null value. Corresponds to the JSON property ‘nullable` @return [Boolean]

ordinal_position[RW]

The ordinal position of the column in the table. Corresponds to the JSON property ‘ordinalPosition` @return [Fixnum]

primary_key[RW]

Whether or not the column represents a primary key. Corresponds to the JSON property ‘primaryKey` @return [Boolean]

primary_key?[RW]

Whether or not the column represents a primary key. Corresponds to the JSON property ‘primaryKey` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datastream_v1alpha1/classes.rb, line 887
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datastream_v1alpha1/classes.rb, line 892
def update!(**args)
  @collation = args[:collation] if args.key?(:collation)
  @column_name = args[:column_name] if args.key?(:column_name)
  @data_type = args[:data_type] if args.key?(:data_type)
  @length = args[:length] if args.key?(:length)
  @nullable = args[:nullable] if args.key?(:nullable)
  @ordinal_position = args[:ordinal_position] if args.key?(:ordinal_position)
  @primary_key = args[:primary_key] if args.key?(:primary_key)
end