class Mkxms::Mssql::TableHandler
Public Class Methods
new(tables, node)
click to toggle source
# File lib/mkxms/mssql/table_handler.rb, line 153 def initialize(tables, node) a = node.attributes @table = Table.new(a['schema'], a['name']).tap do |t| store_properties_on t tables << t end @table.owner = a['owner'] @table.heap_storage = a['rows-on'] @table.lob_storage = a['textimage-on'] @identity_column = a['identity'] @rowguid_column = a['rowguidcol'] end
Public Instance Methods
handle_column_element(parse)
click to toggle source
# File lib/mkxms/mssql/table_handler.rb, line 166 def handle_column_element(parse) parse.context = ColumnHandler.new(@table.columns, parse.node) column = parse.context.column column.flags << :identity if column.name.eql? @identity_column column.flags << :rowguid if column.name.eql? @rowguid_column end