Sha256: 5654530d816e1466b0b9f190aceaf6aa3072e489d3059429522aff6c6abb1785

Contents?: true

Size: 539 Bytes

Versions: 10

Compression:

Stored size: 539 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(@url, @user, @password)
        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.0.0 lib/libis/services/rosetta_db/client.rb
libis-services-0.2.1 lib/libis/services/rosetta_db/client.rb
libis-services-0.2.0 lib/libis/services/rosetta_db/client.rb
libis-services-0.1.18 lib/libis/services/rosetta_db/client.rb
libis-services-0.1.17 lib/libis/services/rosetta_db/client.rb
libis-services-0.1.16 lib/libis/services/rosetta_db/client.rb
libis-services-0.1.15 lib/libis/services/rosetta_db/client.rb
libis-services-0.1.14 lib/libis/services/rosetta_db/client.rb
libis-services-0.1.13 lib/libis/services/rosetta_db/client.rb
libis-services-0.1.12 lib/libis/services/rosetta_db/client.rb