Sha256: c89b33dd53b5576d6a0928963ac4791a16ffbb2156556779e90210a906b3d9ad
Contents?: true
Size: 548 Bytes
Versions: 10
Compression:
Stored size: 548 Bytes
Contents
module Libis module Services module RosettaDb class Client require 'libis/services/oracle_client' attr_accessor :url, :user, :password def initialize(url, user, password) @url = url @user = user @password = password end def connect @oracle = OracleClient.new("#{@user}/#{@password}@#{@url}") end def set_schema(schema) @oracle.execute("alter session set current_schema = #{schema}") end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems