Is there any solution to work with Btrieve/Pervasive db from Ruby level? Any gem? Maybe somebody have some experience with such a thing?
Or maybe use some Java libs through Jruby? I've never used Jruby
Is there any solution to work with Btrieve/Pervasive db from Ruby level? Any gem? Maybe somebody have some experience with such a thing?
Or maybe use some Java libs through Jruby? I've never used Jruby
@kell I used jruby and JDBC Pervasive driver. Simple example:
require "java"
module JavaSql
include_package "java.sql"
end
pervasive_driver = Java::JavaClass.for_name("pervasive.jdbc.PervasiveDriver")
conn = JavaSql::DriverManager.getConnection("jdbc:pervasive://host/database","master","")
stmt = conn.createStatement
rs = stmt.executeQuery("select count(*) as class_count from class")
while (rs.next) do
puts rs.get_string("class_count")
end