Module: Avmtrf1::Oracle::Oci8

Defined in:
lib/avmtrf1/oracle/oci8.rb

Constant Summary collapse

NLS_LANG_DEFAULT_VALUE =
'BRAZILIAN PORTUGUESE_BRAZIL.UTF8'
NLS_LANG_ENVIRONMENT_KEY =
'NLS_LANG'

Class Method Summary collapse

Class Method Details

.dependencyObject


12
13
14
# File 'lib/avmtrf1/oracle/oci8.rb', line 12

def dependency
  @dependency ||= ::Avmtrf1::Ruby::Gems::Dependency.new('ruby-oci8', 'oci8')
end

.nls_lang_setObject


21
22
23
24
25
# File 'lib/avmtrf1/oracle/oci8.rb', line 21

def nls_lang_set
  return if ENV.key?(NLS_LANG_ENVIRONMENT_KEY)

  ENV[NLS_LANG_ENVIRONMENT_KEY] = NLS_LANG_DEFAULT_VALUE
end

.require_libObject


16
17
18
19
# File 'lib/avmtrf1/oracle/oci8.rb', line 16

def require_lib
  nls_lang_set
  dependency.require_lib
end