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_link, #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)


662
663
664
# File 'lib/oci8/metadata.rb', line 662

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.



669
670
671
672
673
# File 'lib/oci8/metadata.rb', line 669

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

#typesarray of OCI8::Metadata::Type

Returns an array of types defined within the Package.

Returns:

Since:

  • 2.1.6



684
685
686
# File 'lib/oci8/metadata.rb', line 684

def types
  raise "This version of the Oracle client does not support PL/SQL package type descriptions."
end