@ kell Я использовал jruby и драйвер JDBC Pervasive.
Простой пример:
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