activerecord-spanner-adapter - Class ActiveRecordSpannerAdapter::Table::Column (v2.0.0)

Reference documentation and code samples for the activerecord-spanner-adapter class ActiveRecordSpannerAdapter::Table::Column.

Inherits

  • Object

Methods

#allow_commit_timestamp

def allow_commit_timestamp()

Returns the value of attribute allow_commit_timestamp.

#allow_commit_timestamp=

def allow_commit_timestamp=(value)

Sets the attribute allow_commit_timestamp

#default

def default()

Returns the value of attribute default.

#default=

def default=(value)

Sets the attribute default

#default_function

def default_function()

Returns the value of attribute default_function.

#default_function=

def default_function=(value)

Sets the attribute default_function

#generated

def generated()

Returns the value of attribute generated.

#generated=

def generated=(value)

Sets the attribute generated

#initialize

def initialize(table_name, name, type, schema_name: "", limit: nil, ordinal_position: nil, nullable: true, allow_commit_timestamp: nil, default: nil, default_function: nil, generated: nil, primary_key: false) -> Column
Returns
  • (Column) — a new instance of Column

#limit

def limit()

Returns the value of attribute limit.

#limit=

def limit=(value)

Sets the attribute limit

#name

def name()

Returns the value of attribute name.

#name=

def name=(value)

Sets the attribute name

#nullable

def nullable()

Returns the value of attribute nullable.

#nullable=

def nullable=(value)

Sets the attribute nullable

#options

def options()

#ordinal_position

def ordinal_position()

Returns the value of attribute ordinal_position.

#ordinal_position=

def ordinal_position=(value)

Sets the attribute ordinal_position

#primary_key

def primary_key()

Returns the value of attribute primary_key.

#primary_key=

def primary_key=(value)

Sets the attribute primary_key

#schema_name

def schema_name()

Returns the value of attribute schema_name.

#schema_name=

def schema_name=(value)

Sets the attribute schema_name

#spanner_type

def spanner_type()

#table_name

def table_name()

Returns the value of attribute table_name.

#table_name=

def table_name=(value)

Sets the attribute table_name

#type

def type()

Returns the value of attribute type.

#type=

def type=(value)

Sets the attribute type