jdbc-firebird 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +15 -0
- data/README.md +24 -0
- data/lib/antlr-runtime-3.4.jar +0 -0
- data/lib/connector-api-1.5.jar +0 -0
- data/lib/jaybird-2.2.3.jar +0 -0
- data/lib/jdbc/firebird.rb +46 -0
- data/lib/jdbc/firebird/version.rb +6 -0
- metadata +57 -0
data/LICENSE.txt
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Jaybird JCA/JDBC driver is distributed under the GNU Lesser General Public License.
|
2
|
+
Text of the license can be obtained from http://www.gnu.org/copyleft/lesser.html.
|
3
|
+
|
4
|
+
Using Jaybird (by importing Jaybird's public interfaces in your Java code), and
|
5
|
+
extending Jaybird by subclassing or implementation of an extension interface
|
6
|
+
(but not abstract or concrete class) is considered by the authors of Jaybird to
|
7
|
+
be dynamic linking.
|
8
|
+
Hence our interpretation of the LGPL is that the use of the unmodified Jaybird
|
9
|
+
source does not affect the license of your application code.
|
10
|
+
|
11
|
+
Even more, all extension interfaces to which application might want to link are
|
12
|
+
released under dual LGPL/modified BSD license. Latter is basically “AS IS”
|
13
|
+
license that allows any kind of use of that source code. Jaybird should be viewed
|
14
|
+
as an implementation of that interfaces and LGPL section for dynamic linking is
|
15
|
+
applicable in this case.
|
data/README.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# jdbc-firebird
|
2
|
+
|
3
|
+
FireBird is a (open-source) relational database offering many ANSI SQL standard
|
4
|
+
features that runs on Linux, Windows, and a variety of Unix platforms.
|
5
|
+
Firebird offers excellent concurrency, high performance, and powerful language
|
6
|
+
support for stored procedures and triggers.
|
7
|
+
It has been used in production systems, under a variety of names, since 1981.
|
8
|
+
|
9
|
+
For more information see http://www.firebirdsql.org/
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
To make the JayBird driver accessible to JDBC and ActiveRecord in JRuby use :
|
14
|
+
|
15
|
+
require 'jdbc/firebird'
|
16
|
+
Jdbc::FireBird.load_driver
|
17
|
+
|
18
|
+
## Copyright
|
19
|
+
|
20
|
+
Copyright (c) 2013 [The JRuby Team](https://github.com/jruby).
|
21
|
+
|
22
|
+
H2 is dual licensed and available under a modified version of the MPL 1.1
|
23
|
+
(Mozilla Public License) or under the (unmodified) EPL 1.0 (Eclipse Public License).
|
24
|
+
see *LICENSE.txt* and http://www.h2database.com/html/license.html for more details.
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,46 @@
|
|
1
|
+
warn "Jdbc-FireBird is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)
|
2
|
+
require 'jdbc/firebird/version'
|
3
|
+
|
4
|
+
module Jdbc
|
5
|
+
module Firebird
|
6
|
+
|
7
|
+
def self.driver_jar
|
8
|
+
"jaybird-#{DRIVER_VERSION}.jar"
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.load_driver(method = :load)
|
12
|
+
load_connector_api(method)
|
13
|
+
load_antlr_runtime(method)
|
14
|
+
send method, driver_jar
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.driver_name
|
18
|
+
'org.firebirdsql.jdbc.FBDriver'
|
19
|
+
end
|
20
|
+
|
21
|
+
if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
|
22
|
+
( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
|
23
|
+
Java::JavaLang::Boolean.get_boolean("jdbc.firebird.autoload") )
|
24
|
+
warn "autoloading JDBC driver on require 'jdbc/firebird'" if $VERBOSE
|
25
|
+
load_driver :require
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
@@connector_api = nil
|
31
|
+
|
32
|
+
def self.load_connector_api(method = :load)
|
33
|
+
return if @@connector_api
|
34
|
+
Java::JavaClass.for_name 'javax.resource.Referenceable'
|
35
|
+
rescue NameError
|
36
|
+
send method, 'connector-api-1.5.jar'
|
37
|
+
@@connector_api = true
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.load_antlr_runtime(method = :load)
|
41
|
+
send method, 'antlr-runtime-3.4.jar'
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
Jaybird = Firebird # cover-name Jaybird !
|
46
|
+
end
|
metadata
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jdbc-firebird
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 2.2.3
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Karol Bucek
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Install this gem `require 'jdbc/firebird'` and invoke `Jdbc::FireBird.load_driver` within JRuby to load the driver.
|
15
|
+
email: self@kares.org
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- README.md
|
21
|
+
- LICENSE.txt
|
22
|
+
- lib/antlr-runtime-3.4.jar
|
23
|
+
- lib/connector-api-1.5.jar
|
24
|
+
- lib/jaybird-2.2.3.jar
|
25
|
+
- lib/jdbc/firebird.rb
|
26
|
+
- lib/jdbc/firebird/version.rb
|
27
|
+
homepage: https://github.com/jruby/activerecord-jdbc-adapter
|
28
|
+
licenses: []
|
29
|
+
post_install_message:
|
30
|
+
rdoc_options:
|
31
|
+
- --main
|
32
|
+
- README.md
|
33
|
+
require_paths:
|
34
|
+
- lib
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
hash: 2
|
42
|
+
version: '0'
|
43
|
+
none: false
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
none: false
|
50
|
+
requirements: []
|
51
|
+
rubyforge_project:
|
52
|
+
rubygems_version: 1.8.24
|
53
|
+
signing_key:
|
54
|
+
specification_version: 3
|
55
|
+
summary: FireBird JDBC driver (a.k.a. JayBird) for JRuby and FireBird/ActiveRecord-JDBC.
|
56
|
+
test_files: []
|
57
|
+
has_rdoc:
|