class Mkxms::Mssql::Schema
Attributes
name[RW]
owner[RW]
Public Class Methods
new(name, owner: nil)
click to toggle source
# File lib/mkxms/mssql/schema_handler.rb, line 9 def initialize(name, owner: nil) @name = name @owner = owner end
Public Instance Methods
property_subject_identifiers()
click to toggle source
# File lib/mkxms/mssql/schema_handler.rb, line 24 def property_subject_identifiers ['SCHEMA', Utils.unquoted_name(name)] end
to_sql()
click to toggle source
# File lib/mkxms/mssql/schema_handler.rb, line 16 def to_sql if owner "CREATE SCHEMA #{name} AUTHORIZATION #{owner};" else "CREATE SCHEMA #{name};" end + extended_properties_sql.joined_on_new_lines end