sequel-jdbc-pervasive-adapter 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
|
|
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
|
+
|
2
8
|
module Sequel
|
3
9
|
module JDBC
|
4
10
|
module Pervasive
|
@@ -4,12 +4,6 @@ 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
|
-
|
13
7
|
db.extend(Sequel::JDBC::Pervasive::DatabaseMethods)
|
14
8
|
java.sql.DriverManager.registerDriver("com.pervasive.jdbc.v2.Driver");
|
15
9
|
end
|