sequel-jdbc-pervasive-adapter 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,4 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
require "sequel-jdbc-pervasive-adapter/jpscs.jar"
|
3
|
-
require "sequel-jdbc-pervasive-adapter/pvjdbc2.jar"
|
4
|
-
require "sequel-jdbc-pervasive-adapter/pvjdbc2x.jar"
|
5
|
-
|
6
|
-
Java::JavaClass.for_name("com.pervasive.jdbc.v2.Driver")
|
7
|
-
|
8
2
|
module Sequel
|
9
3
|
module JDBC
|
10
4
|
module Pervasive
|
@@ -4,6 +4,12 @@ require 'sequel/adapters/jdbc'
|
|
4
4
|
|
5
5
|
Sequel::JDBC::DATABASE_SETUP[:pervasive] = proc do |db|
|
6
6
|
require 'sequel/adapters/jdbc/pervasive'
|
7
|
+
require 'sequel-jdbc-pervasive-adapter/jpscs.jar'
|
8
|
+
require 'sequel-jdbc-pervasive-adapter/pvjdbc2.jar'
|
9
|
+
require 'sequel-jdbc-pervasive-adapter/pvjdbc2x.jar'
|
10
|
+
|
11
|
+
Java::JavaClass.for_name("com.pervasive.jdbc.v2.Driver")
|
12
|
+
|
7
13
|
db.extend(Sequel::JDBC::Pervasive::DatabaseMethods)
|
8
14
|
java.sql.DriverManager.registerDriver("com.pervasive.jdbc.v2.Driver");
|
9
15
|
end
|