class Athena::ORM::Schema::Column
inherits Reference
#
Describes a database column, as passed to AORM::Types::Type#sql_declaration to build the SQL declaring it.
Todo
Nothing in the ORM generates schema yet, so the ORM itself never builds columns or calls AORM::Types::Type#sql_declaration.
Constructors#
.new(name : String, type : Types::Type)#
Creates a column named name, holding values of type.
Methods#
#auto_increment=(auto_increment : Bool)#
Whether the database generates the column's value, e.g. an identity column.
#auto_increment? : Bool#
Whether the database generates the column's value, e.g. an identity column.
#scale : Int32 | ::Nil#
The number of digits to the right of the decimal point of a decimal column.
#scale=(scale : Int32 | Nil)#
The number of digits to the right of the decimal point of a decimal column.
#unsigned=(unsigned : Bool)#
Whether a numeric column is unsigned, on platforms supporting it.