class XMigra::MSSQLSpecifics::StatisticsObject
Attributes
columns[R]
name[R]
options[R]
target[R]
Public Class Methods
new(name, params)
click to toggle source
# File lib/xmigra/db_support/mssql.rb, line 19 def initialize(name, params) (@name = name.dup).freeze (@target = params[0].dup).freeze (@columns = params[1].dup).freeze @options = params[2] || {} @options.freeze @options.each_value {|v| v.freeze} end
Public Instance Methods
creation_sql()
click to toggle source
# File lib/xmigra/db_support/mssql.rb, line 30 def creation_sql result = "CREATE STATISTICS #{name} ON #{target} (#{columns})" result += " WHERE " + @options['where'] if @options['where'] result += " WITH " + @options['with'] if @options['with'] result += ";" return result end