class Mkxms::Mssql::TableTypeHandler

Public Class Methods

new(user_types, node) click to toggle source
# File lib/mkxms/mssql/table_type_handler.rb, line 232
def initialize(user_types, node)
  TableType.new(node.attributes).tap do |tt|
    user_types << store_properties_on(@type = tt)
  end
end

Public Instance Methods

handle_check_constraint_element(parse) click to toggle source
# File lib/mkxms/mssql/table_type_handler.rb, line 250
def handle_check_constraint_element(parse)
  parse.delegate_to TableTypeCheckConstraintHandler, @type.constraints
end
handle_column_element(parse) click to toggle source
# File lib/mkxms/mssql/table_type_handler.rb, line 238
def handle_column_element(parse)
  a = parse.node.attributes
  TableType::Column.new(parse.node.attributes).tap do |c|
    @type.columns << c
    parse.context = TableTypeColumnHandler.new(c)
  end
end
handle_key_constraint_element(parse) click to toggle source
# File lib/mkxms/mssql/table_type_handler.rb, line 246
def handle_key_constraint_element(parse)
  parse.delegate_to TableTypeKeyConstraintHandler, @type.constraints
end