class OCI8::Metadata::Table

  • {OCI8::Metadata::Schema#objects OCI8::Metadata::Schema#objects}
    * {OCI8::Metadata::Schema#all_objects OCI8::Metadata::Schema#all_objects}
    * {OCI8#describe_table OCI8#describe_table(name)}
    * {OCI8#describe_any OCI8#describe_any(name)}
    An instance of this class is returned by:
    Information about tables

def clustered?

Otherwise, +false+.
cluster[http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/schema.htm#CNCPT608].
Returns +true+ if the table is part of a
def clustered?
  attr_get_ub1(OCI_ATTR_CLUSTERED) != 0
end

def columns

Returns:
  • (array of OCI8::Metadata::Column) -
def columns
  @columns ||= list_columns.to_a
end

def dba

Returns:
  • (Integer) -
def dba
  attr_get_ub4(OCI_ATTR_RDBA)
end

def duration

Returns:
  • (:transaction, :session or nil) -
def duration
  __duration
end

def index_only?

Otherwise, +false+.
{index-organized table}[http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/schema.htm#i23877]
Returns +true+ if the table is an
def index_only?
  attr_get_ub1(OCI_ATTR_INDEX_ONLY) != 0
end

def is_temporary?

Otherwise, +false+.
{temporary table}[http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/schema.htm#i16096].
Returns +true+ if the table is a
def is_temporary?
  attr_get_ub1(OCI_ATTR_IS_TEMPORARY) != 0
end

def is_typed?

Returns +true+ if the table is a object table. Otherwise, +false+.
def is_typed?
  attr_get_ub1(OCI_ATTR_IS_TYPED) != 0
end

def list_columns # :nodoc:

:nodoc:
column list
def list_columns # :nodoc:
  __param(OCI_ATTR_LIST_COLUMNS)
end

def num_cols

Returns:
  • (Integer) -
def num_cols
  attr_get_ub2(OCI_ATTR_NUM_COLS)
end

def partitioned?

Otherwise, +false+.
{partitioned table}[http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/partconc.htm#i449863].
Returns +true+ if the table is a
def partitioned?
  attr_get_ub1(OCI_ATTR_PARTITIONED) != 0
end

def tablespace

Returns:
  • (Integer) -
def tablespace
  __word(OCI_ATTR_TABLESPACE)
end

def type_metadata

Returns:
  • (OCI8::Metadata::Type or nil) -
def type_metadata
  __type_metadata(OCI8::Metadata::Type) if is_typed?
end