activerecord-jdbcsqlserver-adapter 50.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.travis.yml +27 -0
- data/CHANGELOG.md +124 -0
- data/CODE_OF_CONDUCT.md +31 -0
- data/Dockerfile +20 -0
- data/Gemfile +77 -0
- data/Guardfile +29 -0
- data/MIT-LICENSE +20 -0
- data/RAILS5-TODO.md +5 -0
- data/README.md +93 -0
- data/RUNNING_UNIT_TESTS.md +96 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/activerecord-jdbcsqlserver-adapter.gemspec +21 -0
- data/appveyor.yml +39 -0
- data/docker-compose.ci.yml +11 -0
- data/lib/active_record/connection_adapters/sqlserver/core_ext/active_record.rb +27 -0
- data/lib/active_record/connection_adapters/sqlserver/core_ext/attribute_methods.rb +25 -0
- data/lib/active_record/connection_adapters/sqlserver/core_ext/date_time.rb +58 -0
- data/lib/active_record/connection_adapters/sqlserver/core_ext/explain.rb +47 -0
- data/lib/active_record/connection_adapters/sqlserver/core_ext/explain_subscriber.rb +4 -0
- data/lib/active_record/connection_adapters/sqlserver/database_limits.rb +49 -0
- data/lib/active_record/connection_adapters/sqlserver/database_statements.rb +362 -0
- data/lib/active_record/connection_adapters/sqlserver/database_tasks.rb +67 -0
- data/lib/active_record/connection_adapters/sqlserver/errors.rb +7 -0
- data/lib/active_record/connection_adapters/sqlserver/jdbc_overrides.rb +192 -0
- data/lib/active_record/connection_adapters/sqlserver/quoting.rb +99 -0
- data/lib/active_record/connection_adapters/sqlserver/schema_creation.rb +34 -0
- data/lib/active_record/connection_adapters/sqlserver/schema_dumper.rb +16 -0
- data/lib/active_record/connection_adapters/sqlserver/schema_statements.rb +517 -0
- data/lib/active_record/connection_adapters/sqlserver/showplan.rb +66 -0
- data/lib/active_record/connection_adapters/sqlserver/showplan/printer_table.rb +66 -0
- data/lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb +22 -0
- data/lib/active_record/connection_adapters/sqlserver/sql_type_metadata.rb +20 -0
- data/lib/active_record/connection_adapters/sqlserver/table_definition.rb +112 -0
- data/lib/active_record/connection_adapters/sqlserver/transaction.rb +64 -0
- data/lib/active_record/connection_adapters/sqlserver/type.rb +49 -0
- data/lib/active_record/connection_adapters/sqlserver/type/big_integer.rb +19 -0
- data/lib/active_record/connection_adapters/sqlserver/type/binary.rb +21 -0
- data/lib/active_record/connection_adapters/sqlserver/type/boolean.rb +15 -0
- data/lib/active_record/connection_adapters/sqlserver/type/char.rb +32 -0
- data/lib/active_record/connection_adapters/sqlserver/type/data.rb +30 -0
- data/lib/active_record/connection_adapters/sqlserver/type/date.rb +61 -0
- data/lib/active_record/connection_adapters/sqlserver/type/datetime.rb +71 -0
- data/lib/active_record/connection_adapters/sqlserver/type/datetime2.rb +17 -0
- data/lib/active_record/connection_adapters/sqlserver/type/datetimeoffset.rb +23 -0
- data/lib/active_record/connection_adapters/sqlserver/type/decimal.rb +21 -0
- data/lib/active_record/connection_adapters/sqlserver/type/float.rb +19 -0
- data/lib/active_record/connection_adapters/sqlserver/type/integer.rb +15 -0
- data/lib/active_record/connection_adapters/sqlserver/type/json.rb +11 -0
- data/lib/active_record/connection_adapters/sqlserver/type/money.rb +25 -0
- data/lib/active_record/connection_adapters/sqlserver/type/real.rb +19 -0
- data/lib/active_record/connection_adapters/sqlserver/type/small_integer.rb +15 -0
- data/lib/active_record/connection_adapters/sqlserver/type/small_money.rb +25 -0
- data/lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb +29 -0
- data/lib/active_record/connection_adapters/sqlserver/type/string.rb +12 -0
- data/lib/active_record/connection_adapters/sqlserver/type/text.rb +19 -0
- data/lib/active_record/connection_adapters/sqlserver/type/time.rb +68 -0
- data/lib/active_record/connection_adapters/sqlserver/type/time_value_fractional.rb +93 -0
- data/lib/active_record/connection_adapters/sqlserver/type/timestamp.rb +19 -0
- data/lib/active_record/connection_adapters/sqlserver/type/tiny_integer.rb +25 -0
- data/lib/active_record/connection_adapters/sqlserver/type/unicode_char.rb +21 -0
- data/lib/active_record/connection_adapters/sqlserver/type/unicode_string.rb +12 -0
- data/lib/active_record/connection_adapters/sqlserver/type/unicode_text.rb +19 -0
- data/lib/active_record/connection_adapters/sqlserver/type/unicode_varchar.rb +26 -0
- data/lib/active_record/connection_adapters/sqlserver/type/unicode_varchar_max.rb +24 -0
- data/lib/active_record/connection_adapters/sqlserver/type/uuid.rb +36 -0
- data/lib/active_record/connection_adapters/sqlserver/type/varbinary.rb +26 -0
- data/lib/active_record/connection_adapters/sqlserver/type/varbinary_max.rb +24 -0
- data/lib/active_record/connection_adapters/sqlserver/type/varchar.rb +26 -0
- data/lib/active_record/connection_adapters/sqlserver/type/varchar_max.rb +24 -0
- data/lib/active_record/connection_adapters/sqlserver/utils.rb +146 -0
- data/lib/active_record/connection_adapters/sqlserver/version.rb +11 -0
- data/lib/active_record/connection_adapters/sqlserver_adapter.rb +445 -0
- data/lib/active_record/connection_adapters/sqlserver_column.rb +28 -0
- data/lib/active_record/jdbc_sqlserver_connection_methods.rb +31 -0
- data/lib/active_record/sqlserver_base.rb +16 -0
- data/lib/active_record/tasks/sqlserver_database_tasks.rb +131 -0
- data/lib/activerecord-jdbcsqlserver-adapter.rb +24 -0
- data/lib/activerecord-sqlserver-adapter.rb +1 -0
- data/lib/arel/visitors/sqlserver.rb +205 -0
- data/lib/arel_sqlserver.rb +3 -0
- data/test/appveyor/dbsetup.ps1 +27 -0
- data/test/appveyor/dbsetup.sql +11 -0
- data/test/bin/wait-for.sh +79 -0
- data/test/cases/adapter_test_sqlserver.rb +430 -0
- data/test/cases/coerced_tests.rb +845 -0
- data/test/cases/column_test_sqlserver.rb +812 -0
- data/test/cases/connection_test_sqlserver.rb +71 -0
- data/test/cases/execute_procedure_test_sqlserver.rb +45 -0
- data/test/cases/fetch_test_sqlserver.rb +57 -0
- data/test/cases/fully_qualified_identifier_test_sqlserver.rb +76 -0
- data/test/cases/helper_sqlserver.rb +44 -0
- data/test/cases/index_test_sqlserver.rb +47 -0
- data/test/cases/json_test_sqlserver.rb +32 -0
- data/test/cases/migration_test_sqlserver.rb +61 -0
- data/test/cases/order_test_sqlserver.rb +147 -0
- data/test/cases/pessimistic_locking_test_sqlserver.rb +94 -0
- data/test/cases/rake_test_sqlserver.rb +169 -0
- data/test/cases/schema_dumper_test_sqlserver.rb +234 -0
- data/test/cases/schema_test_sqlserver.rb +54 -0
- data/test/cases/scratchpad_test_sqlserver.rb +8 -0
- data/test/cases/showplan_test_sqlserver.rb +65 -0
- data/test/cases/specific_schema_test_sqlserver.rb +180 -0
- data/test/cases/transaction_test_sqlserver.rb +91 -0
- data/test/cases/utils_test_sqlserver.rb +129 -0
- data/test/cases/uuid_test_sqlserver.rb +49 -0
- data/test/config.yml +38 -0
- data/test/debug.rb +14 -0
- data/test/fixtures/1px.gif +0 -0
- data/test/migrations/transaction_table/1_table_will_never_be_created.rb +11 -0
- data/test/models/sqlserver/booking.rb +3 -0
- data/test/models/sqlserver/customers_view.rb +3 -0
- data/test/models/sqlserver/datatype.rb +3 -0
- data/test/models/sqlserver/datatype_migration.rb +8 -0
- data/test/models/sqlserver/dollar_table_name.rb +3 -0
- data/test/models/sqlserver/dot_table_name.rb +3 -0
- data/test/models/sqlserver/edge_schema.rb +13 -0
- data/test/models/sqlserver/fk_has_fk.rb +3 -0
- data/test/models/sqlserver/fk_has_pk.rb +3 -0
- data/test/models/sqlserver/natural_pk_data.rb +4 -0
- data/test/models/sqlserver/natural_pk_int_data.rb +3 -0
- data/test/models/sqlserver/no_pk_data.rb +3 -0
- data/test/models/sqlserver/object_default.rb +3 -0
- data/test/models/sqlserver/quoted_table.rb +7 -0
- data/test/models/sqlserver/quoted_view_1.rb +3 -0
- data/test/models/sqlserver/quoted_view_2.rb +3 -0
- data/test/models/sqlserver/sst_memory.rb +3 -0
- data/test/models/sqlserver/string_default.rb +3 -0
- data/test/models/sqlserver/string_defaults_big_view.rb +3 -0
- data/test/models/sqlserver/string_defaults_view.rb +3 -0
- data/test/models/sqlserver/tinyint_pk.rb +3 -0
- data/test/models/sqlserver/upper.rb +3 -0
- data/test/models/sqlserver/uppered.rb +3 -0
- data/test/models/sqlserver/uuid.rb +3 -0
- data/test/schema/datatypes/2012.sql +55 -0
- data/test/schema/enable-in-memory-oltp.sql +81 -0
- data/test/schema/sqlserver_specific_schema.rb +238 -0
- data/test/support/coerceable_test_sqlserver.rb +49 -0
- data/test/support/connection_reflection.rb +34 -0
- data/test/support/load_schema_sqlserver.rb +29 -0
- data/test/support/minitest_sqlserver.rb +1 -0
- data/test/support/paths_sqlserver.rb +50 -0
- data/test/support/rake_helpers.rb +41 -0
- data/test/support/sql_counter_sqlserver.rb +28 -0
- data/test/support/test_in_memory_oltp.rb +15 -0
- metadata +310 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
module ARTest
|
2
|
+
module SQLServer
|
3
|
+
module CoerceableTest
|
4
|
+
|
5
|
+
extend ActiveSupport::Concern
|
6
|
+
|
7
|
+
included do
|
8
|
+
cattr_accessor :coerced_tests, instance_accessor: false
|
9
|
+
self.coerced_tests = []
|
10
|
+
end
|
11
|
+
|
12
|
+
module ClassMethods
|
13
|
+
|
14
|
+
def coerce_tests!(*methods)
|
15
|
+
methods.each do |method|
|
16
|
+
self.coerced_tests.push(method)
|
17
|
+
coerced_test_warning(method)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def coerce_all_tests!
|
22
|
+
once = false
|
23
|
+
instance_methods(false).each do |method|
|
24
|
+
next unless method.to_s =~ /\Atest/
|
25
|
+
undef_method(method)
|
26
|
+
once = true
|
27
|
+
end
|
28
|
+
STDOUT.puts "🙉 🙈 🙊 Undefined all tests: #{self.name}"
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def coerced_test_warning(method)
|
34
|
+
method = instance_methods(false).select { |m| m =~ method } if method.is_a?(Regexp)
|
35
|
+
Array(method).each do |m|
|
36
|
+
result = undef_method(m) if m && method_defined?(m)
|
37
|
+
if result.blank?
|
38
|
+
STDOUT.puts "🐳 Unfound coerced test: #{self.name}##{m}"
|
39
|
+
else
|
40
|
+
STDOUT.puts "🐵 Undefined coerced test: #{self.name}##{m}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module ARTest
|
2
|
+
module SQLServer
|
3
|
+
module ConnectionReflection
|
4
|
+
|
5
|
+
extend ActiveSupport::Concern
|
6
|
+
|
7
|
+
included { extend ConnectionReflection }
|
8
|
+
|
9
|
+
def connection
|
10
|
+
ActiveRecord::Base.connection
|
11
|
+
end
|
12
|
+
|
13
|
+
def connection_options
|
14
|
+
connection.instance_variable_get :@connection_options
|
15
|
+
end
|
16
|
+
|
17
|
+
def connection_dblib?
|
18
|
+
connection_options[:mode] == :dblib
|
19
|
+
end
|
20
|
+
|
21
|
+
def connection_dblib_73?
|
22
|
+
return true if defined? JRUBY_VERSION
|
23
|
+
return false unless connection_dblib?
|
24
|
+
rc = connection.raw_connection
|
25
|
+
rc.respond_to?(:tds_73?) && rc.tds_73?
|
26
|
+
end
|
27
|
+
|
28
|
+
def connection_sqlserver_azure?
|
29
|
+
connection.sqlserver_azure?
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module ARTest
|
2
|
+
module SQLServer
|
3
|
+
|
4
|
+
extend self
|
5
|
+
|
6
|
+
def schema_root
|
7
|
+
File.join ARTest::SQLServer.test_root_sqlserver, 'schema'
|
8
|
+
end
|
9
|
+
|
10
|
+
def schema_file
|
11
|
+
File.join schema_root, 'sqlserver_specific_schema.rb'
|
12
|
+
end
|
13
|
+
|
14
|
+
def schema_datatypes_2012_file
|
15
|
+
File.join schema_root, 'datatypes', '2012.sql'
|
16
|
+
end
|
17
|
+
|
18
|
+
def load_schema
|
19
|
+
original_stdout = $stdout
|
20
|
+
$stdout = StringIO.new
|
21
|
+
load schema_file
|
22
|
+
ensure
|
23
|
+
$stdout = original_stdout
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
ARTest::SQLServer.load_schema
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'minitest-spec-rails/init/active_support'
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module ARTest
|
2
|
+
module SQLServer
|
3
|
+
|
4
|
+
extend self
|
5
|
+
|
6
|
+
def root_sqlserver
|
7
|
+
File.expand_path File.join(File.dirname(__FILE__), '..', '..')
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_root_sqlserver
|
11
|
+
File.join root_sqlserver, 'test'
|
12
|
+
end
|
13
|
+
|
14
|
+
def root_activerecord
|
15
|
+
File.join Gem.loaded_specs['rails'].full_gem_path, 'activerecord'
|
16
|
+
end
|
17
|
+
|
18
|
+
def root_activerecord_lib
|
19
|
+
File.join root_activerecord, 'lib'
|
20
|
+
end
|
21
|
+
|
22
|
+
def root_activerecord_test
|
23
|
+
File.join root_activerecord, 'test'
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_load_paths
|
27
|
+
['lib', 'test', root_activerecord_lib, root_activerecord_test]
|
28
|
+
end
|
29
|
+
|
30
|
+
def add_to_load_paths!
|
31
|
+
test_load_paths.each { |p| $LOAD_PATH.unshift(p) unless $LOAD_PATH.include?(p) }
|
32
|
+
end
|
33
|
+
|
34
|
+
def migrations_root
|
35
|
+
File.join test_root_sqlserver, 'migrations'
|
36
|
+
end
|
37
|
+
|
38
|
+
def arconfig_file
|
39
|
+
File.join test_root_sqlserver, 'config.yml'
|
40
|
+
end
|
41
|
+
|
42
|
+
def arconfig_file_env!
|
43
|
+
ENV['ARCONFIG'] = arconfig_file
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
ARTest::SQLServer.add_to_load_paths!
|
50
|
+
ARTest::SQLServer.arconfig_file_env!
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
SQLSERVER_HELPER = 'test/cases/helper_sqlserver.rb'
|
3
|
+
SQLSERVER_COERCED = 'test/cases/coerced_tests.rb'
|
4
|
+
|
5
|
+
def env_ar_test_files
|
6
|
+
return unless ENV['TEST_FILES_AR'] && !ENV['TEST_FILES_AR'].empty?
|
7
|
+
@env_ar_test_files ||= begin
|
8
|
+
ENV['TEST_FILES_AR'].split(',').map { |file|
|
9
|
+
File.join ARTest::SQLServer.root_activerecord, file.strip
|
10
|
+
}.sort
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def env_test_files
|
15
|
+
return unless ENV['TEST_FILES'] && !ENV['TEST_FILES'].empty?
|
16
|
+
@env_test_files ||= ENV['TEST_FILES'].split(',').map(&:strip)
|
17
|
+
end
|
18
|
+
|
19
|
+
def sqlserver_cases
|
20
|
+
@sqlserver_cases ||= Dir.glob('test/cases/*_test_sqlserver.rb')
|
21
|
+
end
|
22
|
+
|
23
|
+
def ar_cases
|
24
|
+
@ar_cases ||= begin
|
25
|
+
Dir.glob("#{ARTest::SQLServer.root_activerecord}/test/cases/**/*_test.rb").reject{ |x| x =~ /\/adapters\// }.sort
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_files
|
30
|
+
if env_ar_test_files
|
31
|
+
[SQLSERVER_HELPER] + env_ar_test_files
|
32
|
+
elsif env_test_files
|
33
|
+
env_test_files
|
34
|
+
elsif ENV['ONLY_SQLSERVER']
|
35
|
+
sqlserver_cases
|
36
|
+
elsif ENV['ONLY_ACTIVERECORD']
|
37
|
+
[SQLSERVER_HELPER] + (ar_cases + [SQLSERVER_COERCED])
|
38
|
+
else
|
39
|
+
[SQLSERVER_HELPER] + (ar_cases + [SQLSERVER_COERCED] + sqlserver_cases)
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module ARTest
|
2
|
+
module SQLServer
|
3
|
+
|
4
|
+
module SqlCounterSqlserver
|
5
|
+
|
6
|
+
# Only return the log vs. log_all
|
7
|
+
def capture_sql_ss
|
8
|
+
ActiveRecord::SQLCounter.clear_log
|
9
|
+
yield
|
10
|
+
ActiveRecord::SQLCounter.log.dup
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
ignored_sql = [
|
16
|
+
/INFORMATION_SCHEMA\.(TABLES|VIEWS|COLUMNS)/im,
|
17
|
+
/SELECT @@version/,
|
18
|
+
/SELECT @@TRANCOUNT/,
|
19
|
+
/(BEGIN|COMMIT|ROLLBACK|SAVE) TRANSACTION/,
|
20
|
+
/SELECT CAST\(.* AS .*\) AS value/,
|
21
|
+
/SELECT DATABASEPROPERTYEX/im
|
22
|
+
]
|
23
|
+
|
24
|
+
sqlcounter = ObjectSpace.each_object(ActiveRecord::SQLCounter).to_a.first
|
25
|
+
sqlcounter.instance_variable_set :@ignore, Regexp.union(ignored_sql.push(sqlcounter.ignore))
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
if ENV['IN_MEMORY_OLTP']
|
2
|
+
require 'config'
|
3
|
+
require 'active_record'
|
4
|
+
require 'support/config'
|
5
|
+
require 'support/connection'
|
6
|
+
|
7
|
+
ARTest.connect
|
8
|
+
|
9
|
+
if ActiveRecord::Base.connection.supports_in_memory_oltp?
|
10
|
+
puts 'Configuring In-Memory OLTP...'
|
11
|
+
inmem_file = ARTest::SQLServer.test_root_sqlserver, 'schema', 'enable-in-memory-oltp.sql'
|
12
|
+
inmem_sql = File.read File.join(inmem_file)
|
13
|
+
ActiveRecord::Base.connection.execute(inmem_sql)
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,310 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activerecord-jdbcsqlserver-adapter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 50.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ken Collins
|
8
|
+
- Anna Carey
|
9
|
+
- Will Bond
|
10
|
+
- Murray Steele
|
11
|
+
- Shawn Balestracci
|
12
|
+
- Joe Rafaniello
|
13
|
+
- Tom Ward
|
14
|
+
- Rob Widmer
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
date: 2019-11-01 00:00:00.000000000 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 5.0.0
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 5.0.6
|
29
|
+
name: activerecord
|
30
|
+
prerelease: false
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - "~>"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 5.0.0
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 5.0.6
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
requirement: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - "~>"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '50.5'
|
46
|
+
name: activerecord-jdbc-adapter
|
47
|
+
prerelease: false
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '50.5'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.6.0
|
60
|
+
name: jdbc-mssql
|
61
|
+
prerelease: false
|
62
|
+
type: :runtime
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.6.0
|
68
|
+
description: This is a fork of ActiveRecord SQL Server Adapter for JRuby. SQL Server
|
69
|
+
2012 and upward.
|
70
|
+
email:
|
71
|
+
- ken@metaskills.net
|
72
|
+
- will@wbond.net
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
78
|
+
- ".travis.yml"
|
79
|
+
- CHANGELOG.md
|
80
|
+
- CODE_OF_CONDUCT.md
|
81
|
+
- Dockerfile
|
82
|
+
- Gemfile
|
83
|
+
- Guardfile
|
84
|
+
- MIT-LICENSE
|
85
|
+
- RAILS5-TODO.md
|
86
|
+
- README.md
|
87
|
+
- RUNNING_UNIT_TESTS.md
|
88
|
+
- Rakefile
|
89
|
+
- VERSION
|
90
|
+
- activerecord-jdbcsqlserver-adapter.gemspec
|
91
|
+
- appveyor.yml
|
92
|
+
- docker-compose.ci.yml
|
93
|
+
- lib/active_record/connection_adapters/sqlserver/core_ext/active_record.rb
|
94
|
+
- lib/active_record/connection_adapters/sqlserver/core_ext/attribute_methods.rb
|
95
|
+
- lib/active_record/connection_adapters/sqlserver/core_ext/date_time.rb
|
96
|
+
- lib/active_record/connection_adapters/sqlserver/core_ext/explain.rb
|
97
|
+
- lib/active_record/connection_adapters/sqlserver/core_ext/explain_subscriber.rb
|
98
|
+
- lib/active_record/connection_adapters/sqlserver/database_limits.rb
|
99
|
+
- lib/active_record/connection_adapters/sqlserver/database_statements.rb
|
100
|
+
- lib/active_record/connection_adapters/sqlserver/database_tasks.rb
|
101
|
+
- lib/active_record/connection_adapters/sqlserver/errors.rb
|
102
|
+
- lib/active_record/connection_adapters/sqlserver/jdbc_overrides.rb
|
103
|
+
- lib/active_record/connection_adapters/sqlserver/quoting.rb
|
104
|
+
- lib/active_record/connection_adapters/sqlserver/schema_creation.rb
|
105
|
+
- lib/active_record/connection_adapters/sqlserver/schema_dumper.rb
|
106
|
+
- lib/active_record/connection_adapters/sqlserver/schema_statements.rb
|
107
|
+
- lib/active_record/connection_adapters/sqlserver/showplan.rb
|
108
|
+
- lib/active_record/connection_adapters/sqlserver/showplan/printer_table.rb
|
109
|
+
- lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
|
110
|
+
- lib/active_record/connection_adapters/sqlserver/sql_type_metadata.rb
|
111
|
+
- lib/active_record/connection_adapters/sqlserver/table_definition.rb
|
112
|
+
- lib/active_record/connection_adapters/sqlserver/transaction.rb
|
113
|
+
- lib/active_record/connection_adapters/sqlserver/type.rb
|
114
|
+
- lib/active_record/connection_adapters/sqlserver/type/big_integer.rb
|
115
|
+
- lib/active_record/connection_adapters/sqlserver/type/binary.rb
|
116
|
+
- lib/active_record/connection_adapters/sqlserver/type/boolean.rb
|
117
|
+
- lib/active_record/connection_adapters/sqlserver/type/char.rb
|
118
|
+
- lib/active_record/connection_adapters/sqlserver/type/data.rb
|
119
|
+
- lib/active_record/connection_adapters/sqlserver/type/date.rb
|
120
|
+
- lib/active_record/connection_adapters/sqlserver/type/datetime.rb
|
121
|
+
- lib/active_record/connection_adapters/sqlserver/type/datetime2.rb
|
122
|
+
- lib/active_record/connection_adapters/sqlserver/type/datetimeoffset.rb
|
123
|
+
- lib/active_record/connection_adapters/sqlserver/type/decimal.rb
|
124
|
+
- lib/active_record/connection_adapters/sqlserver/type/float.rb
|
125
|
+
- lib/active_record/connection_adapters/sqlserver/type/integer.rb
|
126
|
+
- lib/active_record/connection_adapters/sqlserver/type/json.rb
|
127
|
+
- lib/active_record/connection_adapters/sqlserver/type/money.rb
|
128
|
+
- lib/active_record/connection_adapters/sqlserver/type/real.rb
|
129
|
+
- lib/active_record/connection_adapters/sqlserver/type/small_integer.rb
|
130
|
+
- lib/active_record/connection_adapters/sqlserver/type/small_money.rb
|
131
|
+
- lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb
|
132
|
+
- lib/active_record/connection_adapters/sqlserver/type/string.rb
|
133
|
+
- lib/active_record/connection_adapters/sqlserver/type/text.rb
|
134
|
+
- lib/active_record/connection_adapters/sqlserver/type/time.rb
|
135
|
+
- lib/active_record/connection_adapters/sqlserver/type/time_value_fractional.rb
|
136
|
+
- lib/active_record/connection_adapters/sqlserver/type/timestamp.rb
|
137
|
+
- lib/active_record/connection_adapters/sqlserver/type/tiny_integer.rb
|
138
|
+
- lib/active_record/connection_adapters/sqlserver/type/unicode_char.rb
|
139
|
+
- lib/active_record/connection_adapters/sqlserver/type/unicode_string.rb
|
140
|
+
- lib/active_record/connection_adapters/sqlserver/type/unicode_text.rb
|
141
|
+
- lib/active_record/connection_adapters/sqlserver/type/unicode_varchar.rb
|
142
|
+
- lib/active_record/connection_adapters/sqlserver/type/unicode_varchar_max.rb
|
143
|
+
- lib/active_record/connection_adapters/sqlserver/type/uuid.rb
|
144
|
+
- lib/active_record/connection_adapters/sqlserver/type/varbinary.rb
|
145
|
+
- lib/active_record/connection_adapters/sqlserver/type/varbinary_max.rb
|
146
|
+
- lib/active_record/connection_adapters/sqlserver/type/varchar.rb
|
147
|
+
- lib/active_record/connection_adapters/sqlserver/type/varchar_max.rb
|
148
|
+
- lib/active_record/connection_adapters/sqlserver/utils.rb
|
149
|
+
- lib/active_record/connection_adapters/sqlserver/version.rb
|
150
|
+
- lib/active_record/connection_adapters/sqlserver_adapter.rb
|
151
|
+
- lib/active_record/connection_adapters/sqlserver_column.rb
|
152
|
+
- lib/active_record/jdbc_sqlserver_connection_methods.rb
|
153
|
+
- lib/active_record/sqlserver_base.rb
|
154
|
+
- lib/active_record/tasks/sqlserver_database_tasks.rb
|
155
|
+
- lib/activerecord-jdbcsqlserver-adapter.rb
|
156
|
+
- lib/activerecord-sqlserver-adapter.rb
|
157
|
+
- lib/arel/visitors/sqlserver.rb
|
158
|
+
- lib/arel_sqlserver.rb
|
159
|
+
- test/appveyor/dbsetup.ps1
|
160
|
+
- test/appveyor/dbsetup.sql
|
161
|
+
- test/bin/wait-for.sh
|
162
|
+
- test/cases/adapter_test_sqlserver.rb
|
163
|
+
- test/cases/coerced_tests.rb
|
164
|
+
- test/cases/column_test_sqlserver.rb
|
165
|
+
- test/cases/connection_test_sqlserver.rb
|
166
|
+
- test/cases/execute_procedure_test_sqlserver.rb
|
167
|
+
- test/cases/fetch_test_sqlserver.rb
|
168
|
+
- test/cases/fully_qualified_identifier_test_sqlserver.rb
|
169
|
+
- test/cases/helper_sqlserver.rb
|
170
|
+
- test/cases/index_test_sqlserver.rb
|
171
|
+
- test/cases/json_test_sqlserver.rb
|
172
|
+
- test/cases/migration_test_sqlserver.rb
|
173
|
+
- test/cases/order_test_sqlserver.rb
|
174
|
+
- test/cases/pessimistic_locking_test_sqlserver.rb
|
175
|
+
- test/cases/rake_test_sqlserver.rb
|
176
|
+
- test/cases/schema_dumper_test_sqlserver.rb
|
177
|
+
- test/cases/schema_test_sqlserver.rb
|
178
|
+
- test/cases/scratchpad_test_sqlserver.rb
|
179
|
+
- test/cases/showplan_test_sqlserver.rb
|
180
|
+
- test/cases/specific_schema_test_sqlserver.rb
|
181
|
+
- test/cases/transaction_test_sqlserver.rb
|
182
|
+
- test/cases/utils_test_sqlserver.rb
|
183
|
+
- test/cases/uuid_test_sqlserver.rb
|
184
|
+
- test/config.yml
|
185
|
+
- test/debug.rb
|
186
|
+
- test/fixtures/1px.gif
|
187
|
+
- test/migrations/transaction_table/1_table_will_never_be_created.rb
|
188
|
+
- test/models/sqlserver/booking.rb
|
189
|
+
- test/models/sqlserver/customers_view.rb
|
190
|
+
- test/models/sqlserver/datatype.rb
|
191
|
+
- test/models/sqlserver/datatype_migration.rb
|
192
|
+
- test/models/sqlserver/dollar_table_name.rb
|
193
|
+
- test/models/sqlserver/dot_table_name.rb
|
194
|
+
- test/models/sqlserver/edge_schema.rb
|
195
|
+
- test/models/sqlserver/fk_has_fk.rb
|
196
|
+
- test/models/sqlserver/fk_has_pk.rb
|
197
|
+
- test/models/sqlserver/natural_pk_data.rb
|
198
|
+
- test/models/sqlserver/natural_pk_int_data.rb
|
199
|
+
- test/models/sqlserver/no_pk_data.rb
|
200
|
+
- test/models/sqlserver/object_default.rb
|
201
|
+
- test/models/sqlserver/quoted_table.rb
|
202
|
+
- test/models/sqlserver/quoted_view_1.rb
|
203
|
+
- test/models/sqlserver/quoted_view_2.rb
|
204
|
+
- test/models/sqlserver/sst_memory.rb
|
205
|
+
- test/models/sqlserver/string_default.rb
|
206
|
+
- test/models/sqlserver/string_defaults_big_view.rb
|
207
|
+
- test/models/sqlserver/string_defaults_view.rb
|
208
|
+
- test/models/sqlserver/tinyint_pk.rb
|
209
|
+
- test/models/sqlserver/upper.rb
|
210
|
+
- test/models/sqlserver/uppered.rb
|
211
|
+
- test/models/sqlserver/uuid.rb
|
212
|
+
- test/schema/datatypes/2012.sql
|
213
|
+
- test/schema/enable-in-memory-oltp.sql
|
214
|
+
- test/schema/sqlserver_specific_schema.rb
|
215
|
+
- test/support/coerceable_test_sqlserver.rb
|
216
|
+
- test/support/connection_reflection.rb
|
217
|
+
- test/support/load_schema_sqlserver.rb
|
218
|
+
- test/support/minitest_sqlserver.rb
|
219
|
+
- test/support/paths_sqlserver.rb
|
220
|
+
- test/support/rake_helpers.rb
|
221
|
+
- test/support/sql_counter_sqlserver.rb
|
222
|
+
- test/support/test_in_memory_oltp.rb
|
223
|
+
homepage: http://github.com/jruby/activerecord-jdbcsqlserver-adapter
|
224
|
+
licenses:
|
225
|
+
- MIT
|
226
|
+
metadata: {}
|
227
|
+
post_install_message:
|
228
|
+
rdoc_options: []
|
229
|
+
require_paths:
|
230
|
+
- lib
|
231
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - ">="
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
|
+
requirements:
|
238
|
+
- - ">="
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
version: '0'
|
241
|
+
requirements: []
|
242
|
+
rubygems_version: 3.0.6
|
243
|
+
signing_key:
|
244
|
+
specification_version: 4
|
245
|
+
summary: ActiveRecord JDBC SQL Server Adapter.
|
246
|
+
test_files:
|
247
|
+
- test/appveyor/dbsetup.ps1
|
248
|
+
- test/appveyor/dbsetup.sql
|
249
|
+
- test/bin/wait-for.sh
|
250
|
+
- test/cases/adapter_test_sqlserver.rb
|
251
|
+
- test/cases/coerced_tests.rb
|
252
|
+
- test/cases/column_test_sqlserver.rb
|
253
|
+
- test/cases/connection_test_sqlserver.rb
|
254
|
+
- test/cases/execute_procedure_test_sqlserver.rb
|
255
|
+
- test/cases/fetch_test_sqlserver.rb
|
256
|
+
- test/cases/fully_qualified_identifier_test_sqlserver.rb
|
257
|
+
- test/cases/helper_sqlserver.rb
|
258
|
+
- test/cases/index_test_sqlserver.rb
|
259
|
+
- test/cases/json_test_sqlserver.rb
|
260
|
+
- test/cases/migration_test_sqlserver.rb
|
261
|
+
- test/cases/order_test_sqlserver.rb
|
262
|
+
- test/cases/pessimistic_locking_test_sqlserver.rb
|
263
|
+
- test/cases/rake_test_sqlserver.rb
|
264
|
+
- test/cases/schema_dumper_test_sqlserver.rb
|
265
|
+
- test/cases/schema_test_sqlserver.rb
|
266
|
+
- test/cases/scratchpad_test_sqlserver.rb
|
267
|
+
- test/cases/showplan_test_sqlserver.rb
|
268
|
+
- test/cases/specific_schema_test_sqlserver.rb
|
269
|
+
- test/cases/transaction_test_sqlserver.rb
|
270
|
+
- test/cases/utils_test_sqlserver.rb
|
271
|
+
- test/cases/uuid_test_sqlserver.rb
|
272
|
+
- test/config.yml
|
273
|
+
- test/debug.rb
|
274
|
+
- test/fixtures/1px.gif
|
275
|
+
- test/migrations/transaction_table/1_table_will_never_be_created.rb
|
276
|
+
- test/models/sqlserver/booking.rb
|
277
|
+
- test/models/sqlserver/customers_view.rb
|
278
|
+
- test/models/sqlserver/datatype.rb
|
279
|
+
- test/models/sqlserver/datatype_migration.rb
|
280
|
+
- test/models/sqlserver/dollar_table_name.rb
|
281
|
+
- test/models/sqlserver/dot_table_name.rb
|
282
|
+
- test/models/sqlserver/edge_schema.rb
|
283
|
+
- test/models/sqlserver/fk_has_fk.rb
|
284
|
+
- test/models/sqlserver/fk_has_pk.rb
|
285
|
+
- test/models/sqlserver/natural_pk_data.rb
|
286
|
+
- test/models/sqlserver/natural_pk_int_data.rb
|
287
|
+
- test/models/sqlserver/no_pk_data.rb
|
288
|
+
- test/models/sqlserver/object_default.rb
|
289
|
+
- test/models/sqlserver/quoted_table.rb
|
290
|
+
- test/models/sqlserver/quoted_view_1.rb
|
291
|
+
- test/models/sqlserver/quoted_view_2.rb
|
292
|
+
- test/models/sqlserver/sst_memory.rb
|
293
|
+
- test/models/sqlserver/string_default.rb
|
294
|
+
- test/models/sqlserver/string_defaults_big_view.rb
|
295
|
+
- test/models/sqlserver/string_defaults_view.rb
|
296
|
+
- test/models/sqlserver/tinyint_pk.rb
|
297
|
+
- test/models/sqlserver/upper.rb
|
298
|
+
- test/models/sqlserver/uppered.rb
|
299
|
+
- test/models/sqlserver/uuid.rb
|
300
|
+
- test/schema/datatypes/2012.sql
|
301
|
+
- test/schema/enable-in-memory-oltp.sql
|
302
|
+
- test/schema/sqlserver_specific_schema.rb
|
303
|
+
- test/support/coerceable_test_sqlserver.rb
|
304
|
+
- test/support/connection_reflection.rb
|
305
|
+
- test/support/load_schema_sqlserver.rb
|
306
|
+
- test/support/minitest_sqlserver.rb
|
307
|
+
- test/support/paths_sqlserver.rb
|
308
|
+
- test/support/rake_helpers.rb
|
309
|
+
- test/support/sql_counter_sqlserver.rb
|
310
|
+
- test/support/test_in_memory_oltp.rb
|