Class: OCI8::Metadata::Package

Inherits:
Base
  • Object
show all
Defined in:
lib/oci8/metadata.rb

Overview

Information about packages.

An instance of this class is returned by:

  • OCI8#describe_any(name)

  • OCI8#describe_package(name)

  • OCI8::Metadata::Schema#all_objects

  • OCI8::Metadata::Schema#objects

Instance Method Summary collapse

Methods inherited from Base

#obj_id, #obj_name, #obj_schema

Instance Method Details

#is_invoker_rights?Boolean

Returns true if the package subprograms have invoker’s rights. Otherwise, false.

Returns:

  • (Boolean)


638
639
640
# File 'lib/oci8/metadata.rb', line 638

def is_invoker_rights?
  attr_get_ub1(OCI_ATTR_IS_INVOKER_RIGHTS) != 0
end

#subprogramsarray of OCI8::Metadata::Function and OCI8::Metadata::Procedure

Returns an array of Function and Procedure defined within the Package.



645
646
647
648
649
# File 'lib/oci8/metadata.rb', line 645

def subprograms
  @subprograms ||= list_subprograms.to_a.each do |prog|
    prog.instance_variable_set(:@is_standalone, false)
  end
end