set whether or not the column is a primary key column
# File lib/amalgalite/column.rb, line 78 def primary_key=( other ) @primary_key = Boolean.to_bool( other ) end
a class representing the meta information about an SQLite column, this class serves both for general Schema level information, and for result set information from a SELECT query.
the declared data type of the column in the original sql that created the column
set whether or not the column is auto increment
# File lib/amalgalite/column.rb, line 88 def auto_increment=( other ) @auto_increment = Boolean.to_bool( other ) end
true if the column is auto increment
# File lib/amalgalite/column.rb, line 93 def auto_increment? @auto_increment end
true if the column has a default value
# File lib/amalgalite/column.rb, line 58 def has_default_value? not default_value.nil? end
set whether or not the column has a not null constraint
# File lib/amalgalite/column.rb, line 68 def not_null_constraint=( other ) @not_null_constraint = Boolean.to_bool( other ) end
true if the column as a NOT NULL constraint
# File lib/amalgalite/column.rb, line 73 def not_null_constraint? @not_null_constraint end
true if the column may have a NULL value
# File lib/amalgalite/column.rb, line 63 def nullable? @not_null_constraint == false end
Generated with the Darkfish Rdoc Generator 2.