activerecord-jdbcsplice-adapter 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/active_record/connection_adapters/jdbcsplice_adapter.rb +1 -5
- data/lib/active_record/jdbcsplice/adapter.rb +0 -4
- data/lib/active_record/jdbcsplice/adapter/version.rb +1 -1
- data/lib/arjdbc/railtie.rb +11 -0
- data/lib/arjdbc/splice/connection_methods.rb +0 -1
- data/lib/arjdbc/tasks.rb +13 -0
- data/lib/arjdbc/tasks/database_tasks.rb +7 -0
- data/lib/arjdbc/tasks/databases.rake +1 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bd4c9f47550f6ded46b192947daca2a0f9ff9ba
|
4
|
+
data.tar.gz: 2ec9eaf99924671975b3d9395aa23b22149162f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0f906e87dff9b8593c4b4d23ae2ffe1a0ef0abba5708a7c707fd2cb53e5533af36b2ce07c682ad8c5e6b2ddf598f72d4a5171886370f253563a6401ee014a54
|
7
|
+
data.tar.gz: c275f40f2f61d7f289e6c45eae46f8e63c837fdacc97a8ee60e3a75f63076be758c20543c3e7fee5803a6a319a4666ef125bb50974ba2c62f623bb0906840e83
|
@@ -1,5 +1 @@
|
|
1
|
-
|
2
|
-
# we should make sure a jdbcderby_connection is setup on ActiveRecord::Base
|
3
|
-
require 'arjdbc/splice'
|
4
|
-
# all setup should be performed in arjdbc/derby to avoid circular requires
|
5
|
-
# this should not be required from any loads perormed by arjdbc/derby code
|
1
|
+
require 'arjdbc/splice'
|
@@ -1,9 +1,5 @@
|
|
1
1
|
require "active_record/jdbcsplice/adapter/version"
|
2
2
|
|
3
|
-
# NOTE: here for Bundler to auto-load the gem unless :require => false
|
4
|
-
# require 'arjdbc/derby'
|
5
|
-
# require 'activerecord/connection_adapters/jdbcsplice_adapter'
|
6
|
-
|
7
3
|
module Activerecord
|
8
4
|
module Jdbcsplice
|
9
5
|
module Adapter
|
@@ -11,7 +11,6 @@ ArJdbc::ConnectionMethods.module_eval do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
throw "Please specify Splice Cluster URL by defining 'server_url:' in database.yml" if config[:server_url].blank?
|
14
|
-
|
15
14
|
config[:url] ||= "jdbc:splice://#{config[:server_url]}/#{config[:database]};create=true"
|
16
15
|
config[:driver] ||= defined?(::Jdbc::Splice.driver_name) ?
|
17
16
|
::Jdbc::Splice.driver_name : 'com.splicemachine.db.jdbc.ClientDriver'
|
data/lib/arjdbc/tasks.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
if defined?(Rake.application) && Rake.application
|
2
|
+
skip = ENV["SKIP_AR_JDBC_RAKE_REDEFINES"] # jruby -J-Darjdbc.tasks.skip=true -S rake ...
|
3
|
+
if !(Java::JavaLang::Boolean.getBoolean('arjdbc.tasks.skip') || ( skip && skip != 'false' ))
|
4
|
+
databases_rake = File.expand_path('tasks/databases.rake', File.dirname(__FILE__))
|
5
|
+
if Rake.application.lookup("db:create")
|
6
|
+
load databases_rake # load the override tasks now
|
7
|
+
else # rails tasks not loaded yet; load as an import
|
8
|
+
Rake.application.add_import(databases_rake)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
else
|
12
|
+
warn "ArJdbc: could not load rake tasks - rake not loaded ..."
|
13
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'arjdbc/tasks/database_tasks'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbcsplice-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kolosek
|
@@ -55,12 +55,16 @@ files:
|
|
55
55
|
- lib/active_record/connection_adapters/jdbcsplice_adapter.rb
|
56
56
|
- lib/active_record/jdbcsplice/adapter.rb
|
57
57
|
- lib/active_record/jdbcsplice/adapter/version.rb
|
58
|
+
- lib/arjdbc/railtie.rb
|
58
59
|
- lib/arjdbc/splice.rb
|
59
60
|
- lib/arjdbc/splice/connection_jdbc_column.rb
|
60
61
|
- lib/arjdbc/splice/connection_methods.rb
|
61
62
|
- lib/arjdbc/splice/connection_schema_statements.rb
|
62
63
|
- lib/arjdbc/splice/derby_adapter_overrides.rb
|
63
64
|
- lib/arjdbc/splice/schema_creation.rb
|
65
|
+
- lib/arjdbc/tasks.rb
|
66
|
+
- lib/arjdbc/tasks/database_tasks.rb
|
67
|
+
- lib/arjdbc/tasks/databases.rake
|
64
68
|
homepage: http://splicemachine.com
|
65
69
|
licenses:
|
66
70
|
- MIT
|