Class: Mkxms::Mssql::Parameter
- Inherits:
-
Struct
- Object
- Struct
- Mkxms::Mssql::Parameter
- Includes:
- ExtendedProperties
- Defined in:
- lib/mkxms/mssql/clr_impl.rb
Overview
The Parameter class(es) are defined here because they are only important for CLR-linked objects
Constant Summary collapse
- SQL_OBJECT_TYPE =
'PARAMETER'
Instance Attribute Summary collapse
-
#capacity ⇒ Object
Returns the value of attribute capacity.
-
#default_value ⇒ Object
Returns the value of attribute default_value.
-
#name ⇒ Object
Returns the value of attribute name.
-
#output ⇒ Object
Returns the value of attribute output.
-
#precision ⇒ Object
Returns the value of attribute precision.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#type ⇒ Object
Returns the value of attribute type.
-
#type_schema ⇒ Object
Returns the value of attribute type_schema.
Instance Method Summary collapse
Methods included from ExtendedProperties
Instance Attribute Details
#capacity ⇒ Object
Returns the value of attribute capacity
20 21 22 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 20 def capacity @capacity end |
#default_value ⇒ Object
Returns the value of attribute default_value
20 21 22 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 20 def default_value @default_value end |
#name ⇒ Object
Returns the value of attribute name
20 21 22 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 20 def name @name end |
#output ⇒ Object
Returns the value of attribute output
20 21 22 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 20 def output @output end |
#precision ⇒ Object
Returns the value of attribute precision
20 21 22 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 20 def precision @precision end |
#scale ⇒ Object
Returns the value of attribute scale
20 21 22 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 20 def scale @scale end |
#type ⇒ Object
Returns the value of attribute type
20 21 22 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 20 def type @type end |
#type_schema ⇒ Object
Returns the value of attribute type_schema
20 21 22 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 20 def type_schema @type_schema end |
Instance Method Details
#type_spec ⇒ Object
30 31 32 33 34 35 |
# File 'lib/mkxms/mssql/clr_impl.rb', line 30 def type_spec [type_schema, type].compact.join(".").tap do |result| result << "(#{capacity})" if capacity result << "(#{[precision, scale].compact.join(', ')})" if precision end end |