class Google::Apis::DatastreamV1alpha1::MysqlColumn
MySQL Column.
Attributes
Column collation. Corresponds to the JSON property ‘collation` @return [String]
Column name. Corresponds to the JSON property ‘columnName` @return [String]
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]
Column length. Corresponds to the JSON property ‘length` @return [Fixnum]
Whether or not the column can accept a null value. Corresponds to the JSON property ‘nullable` @return [Boolean]
Whether or not the column can accept a null value. Corresponds to the JSON property ‘nullable` @return [Boolean]
The ordinal position of the column in the table. Corresponds to the JSON property ‘ordinalPosition` @return [Fixnum]
Whether or not the column represents a primary key. Corresponds to the JSON property ‘primaryKey` @return [Boolean]
Whether or not the column represents a primary key. Corresponds to the JSON property ‘primaryKey` @return [Boolean]
Public Class Methods
# File lib/google/apis/datastream_v1alpha1/classes.rb, line 887 def initialize(**args) update!(**args) end
Public Instance Methods
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