class OCI8::Metadata::TypeAttr

  • OCI8::Metadata::Type#type_attrs
    This is returned by:
    Metadata for a type attribute.

def charset_form

character set form, if the type attribute is of a string/character type.
def charset_form
  __charset_form
end

def charset_id

character set id if the type attribute is of a string/character type.
def charset_id
  __ub2(OCI_ATTR_CHARSET_ID)
end

def charset_name

character set name if the type attribute is of a string/character type.
def charset_name
  __charset_name(charset_id)
end

def data_size

returns 22 for NUMBERs.
returned in bytes and not characters for strings and raws. It
The maximum size of the type attribute. This length is
def data_size
  __ub2_nc(OCI_ATTR_DATA_SIZE)
end

def data_type

the datatype of the type
def data_type
  __data_type
end

def fsprecision

(unavailable on Oracle 8.1 or lower)

The fractional seconds precision of a datetime or interval.
def fsprecision
  __ub1(OCI_ATTR_FSPRECISION)
end

def inspect # :nodoc:

:nodoc:
def inspect # :nodoc:
  "#<#{self.class.name}: #{name} #{__type_string}>"
end

def lfprecision

(unavailable on Oracle 8.1 or lower)

The leading field precision of an interval
def lfprecision
  __ub1(OCI_ATTR_LFPRECISION)
end

def name

the type attribute name
def name
  __text(OCI_ATTR_NAME)
end

def precision

NUMBER(precision, scale) can be represented simply as NUMBER.
NUMBER(precision, scale). For the case when precision is 0,
nonzero and scale is -127, then it is a FLOAT, else it is a
The precision of numeric type attributes. If the precision is
def precision
  __is_implicit? ? __sb2(OCI_ATTR_PRECISION) : __ub1(OCI_ATTR_PRECISION)
end

def scale

NUMBER(precision, scale) can be represented simply as NUMBER.
NUMBER(precision, scale). For the case when precision is 0,
nonzero and scale is -127, then it is a FLOAT, else it is a
The scale of numeric type attributes. If the precision is
def scale
  __sb1(OCI_ATTR_SCALE)
end

def schema_name

schema name where the type has been created.
def schema_name
  __text(OCI_ATTR_SCHEMA_NAME)
end

def type_metadata

to type metadata if possible
def type_metadata
  __type_metadata(OCI8::Metadata::Type)
end

def type_name

to by the REF is returned.
is :ref, the type name of the named datatype pointed
name of the named datatype's type is returned. If the datatype
or :ref. If the datatype is :named_type, the
contain the type name if the datatype is :named_type
A string which is the type name. The returned value will
def type_name
  __text(OCI_ATTR_TYPE_NAME)
end

def typecode

typecode
def typecode
  __typecode(OCI_ATTR_TYPECODE)
end