How to connect to Oracle with datamapper jdbc adapter (in JRuby) and check connection? -
how connect oracle datamapper jdbc adapter (in jruby) , check connection? can't understand documentation :d
if have illustration - give me please
require 'data_mapper'
require 'dm-oracle-adapter'
adapter = datamapper.setup(:default, 'oracle://user:password@host/orcl')
z = adapter.select('select 1 dual')
oracle jdbc jruby datamapper
No comments:
Post a Comment