class Mkxms::Mssql::TableTypeKeyConstraintHandler

Public Class Methods

new(constraints, node) click to toggle source
# File lib/mkxms/mssql/table_type_handler.rb, line 214
def initialize(constraints, node)
  TableType::KeyConstraint.new(node.attributes).tap do |c|
    constraints << (@constraint = c)
  end
end

Public Instance Methods

handle_column_element(parse) click to toggle source
# File lib/mkxms/mssql/table_type_handler.rb, line 220
def handle_column_element(parse)
  @constraint.columns << TableType::ConstraintColumn.new(parse.node.attributes)
end
handle_property_element(parse) click to toggle source
# File lib/mkxms/mssql/table_type_handler.rb, line 224
def handle_property_element(parse)
  raise "Properties on table type constraints are unsupported"
end