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

#inspect, #obj_id, #obj_name, #obj_schema

Instance Method Details

#is_invoker_rights?Boolean

call-seq:

is_invoker_rights? -> true or false

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

Returns:

  • (Boolean)


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

def is_invoker_rights?
  attr_get_ub1(OCI_ATTR_IS_INVOKER_RIGHTS) != 0
end

#subprogramsObject

call-seq:

subprograms -> array

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



691
692
693
694
695
# File 'lib/oci8/metadata.rb', line 691

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