Class: Avmtrf1::Tools::Runner::Oracle

Inherits:
Object
  • Object
show all
Defined in:
lib/avmtrf1/tools/runner/oracle.rb,
lib/avmtrf1/tools/runner/oracle/query.rb,
lib/avmtrf1/tools/runner/oracle/source_get.rb,
lib/avmtrf1/tools/runner/oracle/user_clear.rb

Defined Under Namespace

Classes: Query, SourceGet, UserClear

Instance Method Summary collapse

Instance Method Details

#connectionObject


21
22
23
# File 'lib/avmtrf1/tools/runner/oracle.rb', line 21

def connection
  @connection ||= ::Avmtrf1::Oracle::Connection::Base.new(connection_string)
end

#connection_stringObject


25
26
27
28
29
30
31
32
33
# File 'lib/avmtrf1/tools/runner/oracle.rb', line 25

def connection_string
  ::Avmtrf1::Oracle::Connection::StringBuilder.new(
    host: parsed.host,
    port: parsed.port,
    user: parsed.user,
    password: parsed.password,
    service_name: parsed.service_name
  ).build
end