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

Version Path
libis-services-1.1.0 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.13 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.12 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.11 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.10 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.7 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.6 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.5 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.2 lib/libis/services/rosetta_db/client.rb
libis-services-1.0.1 lib/libis/services/rosetta_db/client.rb