activerecord-import 0.10.0 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +49 -0
- data/.rubocop_todo.yml +36 -0
- data/.travis.yml +64 -8
- data/CHANGELOG.md +475 -0
- data/Gemfile +32 -15
- data/LICENSE +21 -56
- data/README.markdown +564 -35
- data/Rakefile +20 -3
- data/activerecord-import.gemspec +7 -7
- data/benchmarks/README +2 -2
- data/benchmarks/benchmark.rb +68 -64
- data/benchmarks/lib/base.rb +138 -137
- data/benchmarks/lib/cli_parser.rb +107 -103
- data/benchmarks/lib/{mysql_benchmark.rb → mysql2_benchmark.rb} +19 -22
- data/benchmarks/lib/output_to_csv.rb +5 -4
- data/benchmarks/lib/output_to_html.rb +8 -13
- data/benchmarks/models/test_innodb.rb +1 -1
- data/benchmarks/models/test_memory.rb +1 -1
- data/benchmarks/models/test_myisam.rb +1 -1
- data/benchmarks/schema/mysql2_schema.rb +16 -0
- data/gemfiles/3.2.gemfile +2 -4
- data/gemfiles/4.0.gemfile +2 -4
- data/gemfiles/4.1.gemfile +2 -4
- data/gemfiles/4.2.gemfile +2 -4
- data/gemfiles/5.0.gemfile +2 -0
- data/gemfiles/5.1.gemfile +2 -0
- data/gemfiles/5.2.gemfile +2 -0
- data/gemfiles/6.0.gemfile +2 -0
- data/gemfiles/6.1.gemfile +1 -0
- data/lib/activerecord-import/active_record/adapters/jdbcsqlite3_adapter.rb +6 -0
- data/lib/activerecord-import/active_record/adapters/sqlite3_adapter.rb +0 -1
- data/lib/activerecord-import/adapters/abstract_adapter.rb +23 -17
- data/lib/activerecord-import/adapters/mysql_adapter.rb +52 -25
- data/lib/activerecord-import/adapters/postgresql_adapter.rb +187 -10
- data/lib/activerecord-import/adapters/sqlite3_adapter.rb +148 -17
- data/lib/activerecord-import/base.rb +15 -9
- data/lib/activerecord-import/import.rb +740 -191
- data/lib/activerecord-import/synchronize.rb +21 -21
- data/lib/activerecord-import/value_sets_parser.rb +33 -8
- data/lib/activerecord-import/version.rb +1 -1
- data/lib/activerecord-import.rb +4 -15
- data/test/adapters/jdbcsqlite3.rb +1 -0
- data/test/adapters/makara_postgis.rb +1 -0
- data/test/adapters/mysql2_makara.rb +1 -0
- data/test/adapters/mysql2spatial.rb +1 -1
- data/test/adapters/postgis.rb +1 -1
- data/test/adapters/postgresql.rb +1 -1
- data/test/adapters/postgresql_makara.rb +1 -0
- data/test/adapters/spatialite.rb +1 -1
- data/test/adapters/sqlite3.rb +1 -1
- data/test/database.yml.sample +13 -18
- data/test/import_test.rb +608 -89
- data/test/jdbcmysql/import_test.rb +2 -3
- data/test/jdbcpostgresql/import_test.rb +0 -2
- data/test/jdbcsqlite3/import_test.rb +4 -0
- data/test/makara_postgis/import_test.rb +8 -0
- data/test/models/account.rb +3 -0
- data/test/models/alarm.rb +2 -0
- data/test/models/animal.rb +6 -0
- data/test/models/bike_maker.rb +7 -0
- data/test/models/book.rb +7 -6
- data/test/models/car.rb +3 -0
- data/test/models/chapter.rb +2 -2
- data/test/models/dictionary.rb +4 -0
- data/test/models/discount.rb +3 -0
- data/test/models/end_note.rb +2 -2
- data/test/models/promotion.rb +3 -0
- data/test/models/question.rb +3 -0
- data/test/models/rule.rb +3 -0
- data/test/models/tag.rb +4 -0
- data/test/models/topic.rb +17 -3
- data/test/models/user.rb +3 -0
- data/test/models/user_token.rb +4 -0
- data/test/models/vendor.rb +7 -0
- data/test/models/widget.rb +19 -2
- data/test/mysql2/import_test.rb +2 -3
- data/test/{em_mysql2 → mysql2_makara}/import_test.rb +1 -1
- data/test/mysqlspatial2/import_test.rb +2 -2
- data/test/postgis/import_test.rb +5 -1
- data/test/schema/generic_schema.rb +159 -85
- data/test/schema/jdbcpostgresql_schema.rb +1 -0
- data/test/schema/mysql2_schema.rb +19 -0
- data/test/schema/postgis_schema.rb +1 -0
- data/test/schema/postgresql_schema.rb +61 -0
- data/test/schema/sqlite3_schema.rb +13 -0
- data/test/sqlite3/import_test.rb +2 -50
- data/test/support/active_support/test_case_extensions.rb +21 -13
- data/test/support/{mysql/assertions.rb → assertions.rb} +20 -2
- data/test/support/factories.rb +39 -14
- data/test/support/generate.rb +10 -10
- data/test/support/mysql/import_examples.rb +49 -98
- data/test/support/postgresql/import_examples.rb +535 -57
- data/test/support/shared_examples/on_duplicate_key_ignore.rb +43 -0
- data/test/support/shared_examples/on_duplicate_key_update.rb +378 -0
- data/test/support/shared_examples/recursive_import.rb +225 -0
- data/test/support/sqlite3/import_examples.rb +231 -0
- data/test/synchronize_test.rb +10 -2
- data/test/test_helper.rb +36 -8
- data/test/travis/database.yml +26 -17
- data/test/value_sets_bytes_parser_test.rb +25 -17
- data/test/value_sets_records_parser_test.rb +6 -6
- metadata +86 -42
- data/benchmarks/boot.rb +0 -18
- data/benchmarks/schema/mysql_schema.rb +0 -16
- data/gemfiles/3.1.gemfile +0 -4
- data/lib/activerecord-import/active_record/adapters/em_mysql2_adapter.rb +0 -8
- data/lib/activerecord-import/active_record/adapters/mysql_adapter.rb +0 -6
- data/lib/activerecord-import/em_mysql2.rb +0 -7
- data/lib/activerecord-import/mysql.rb +0 -7
- data/test/adapters/em_mysql2.rb +0 -1
- data/test/adapters/mysql.rb +0 -1
- data/test/adapters/mysqlspatial.rb +0 -1
- data/test/mysql/import_test.rb +0 -6
- data/test/mysqlspatial/import_test.rb +0 -6
- data/test/schema/mysql_schema.rb +0 -18
- data/test/travis/build.sh +0 -30
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Dennis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,8 +38,7 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description:
|
42
|
-
for Rails 3 and beyond
|
41
|
+
description: A library for bulk inserting data using ActiveRecord.
|
43
42
|
email:
|
44
43
|
- zach.dennis@gmail.com
|
45
44
|
executables: []
|
@@ -47,8 +46,11 @@ extensions: []
|
|
47
46
|
extra_rdoc_files: []
|
48
47
|
files:
|
49
48
|
- ".gitignore"
|
49
|
+
- ".rubocop.yml"
|
50
|
+
- ".rubocop_todo.yml"
|
50
51
|
- ".travis.yml"
|
51
52
|
- Brewfile
|
53
|
+
- CHANGELOG.md
|
52
54
|
- Gemfile
|
53
55
|
- LICENSE
|
54
56
|
- README.markdown
|
@@ -56,29 +58,31 @@ files:
|
|
56
58
|
- activerecord-import.gemspec
|
57
59
|
- benchmarks/README
|
58
60
|
- benchmarks/benchmark.rb
|
59
|
-
- benchmarks/boot.rb
|
60
61
|
- benchmarks/lib/base.rb
|
61
62
|
- benchmarks/lib/cli_parser.rb
|
62
63
|
- benchmarks/lib/float.rb
|
63
|
-
- benchmarks/lib/
|
64
|
+
- benchmarks/lib/mysql2_benchmark.rb
|
64
65
|
- benchmarks/lib/output_to_csv.rb
|
65
66
|
- benchmarks/lib/output_to_html.rb
|
66
67
|
- benchmarks/models/test_innodb.rb
|
67
68
|
- benchmarks/models/test_memory.rb
|
68
69
|
- benchmarks/models/test_myisam.rb
|
69
|
-
- benchmarks/schema/
|
70
|
-
- gemfiles/3.1.gemfile
|
70
|
+
- benchmarks/schema/mysql2_schema.rb
|
71
71
|
- gemfiles/3.2.gemfile
|
72
72
|
- gemfiles/4.0.gemfile
|
73
73
|
- gemfiles/4.1.gemfile
|
74
74
|
- gemfiles/4.2.gemfile
|
75
|
+
- gemfiles/5.0.gemfile
|
76
|
+
- gemfiles/5.1.gemfile
|
77
|
+
- gemfiles/5.2.gemfile
|
78
|
+
- gemfiles/6.0.gemfile
|
79
|
+
- gemfiles/6.1.gemfile
|
75
80
|
- lib/activerecord-import.rb
|
76
81
|
- lib/activerecord-import/active_record/adapters/abstract_adapter.rb
|
77
|
-
- lib/activerecord-import/active_record/adapters/em_mysql2_adapter.rb
|
78
82
|
- lib/activerecord-import/active_record/adapters/jdbcmysql_adapter.rb
|
79
83
|
- lib/activerecord-import/active_record/adapters/jdbcpostgresql_adapter.rb
|
84
|
+
- lib/activerecord-import/active_record/adapters/jdbcsqlite3_adapter.rb
|
80
85
|
- lib/activerecord-import/active_record/adapters/mysql2_adapter.rb
|
81
|
-
- lib/activerecord-import/active_record/adapters/mysql_adapter.rb
|
82
86
|
- lib/activerecord-import/active_record/adapters/postgresql_adapter.rb
|
83
87
|
- lib/activerecord-import/active_record/adapters/seamless_database_pool_adapter.rb
|
84
88
|
- lib/activerecord-import/active_record/adapters/sqlite3_adapter.rb
|
@@ -89,65 +93,85 @@ files:
|
|
89
93
|
- lib/activerecord-import/adapters/postgresql_adapter.rb
|
90
94
|
- lib/activerecord-import/adapters/sqlite3_adapter.rb
|
91
95
|
- lib/activerecord-import/base.rb
|
92
|
-
- lib/activerecord-import/em_mysql2.rb
|
93
96
|
- lib/activerecord-import/import.rb
|
94
|
-
- lib/activerecord-import/mysql.rb
|
95
97
|
- lib/activerecord-import/mysql2.rb
|
96
98
|
- lib/activerecord-import/postgresql.rb
|
97
99
|
- lib/activerecord-import/sqlite3.rb
|
98
100
|
- lib/activerecord-import/synchronize.rb
|
99
101
|
- lib/activerecord-import/value_sets_parser.rb
|
100
102
|
- lib/activerecord-import/version.rb
|
101
|
-
- test/adapters/em_mysql2.rb
|
102
103
|
- test/adapters/jdbcmysql.rb
|
103
104
|
- test/adapters/jdbcpostgresql.rb
|
104
|
-
- test/adapters/
|
105
|
+
- test/adapters/jdbcsqlite3.rb
|
106
|
+
- test/adapters/makara_postgis.rb
|
105
107
|
- test/adapters/mysql2.rb
|
108
|
+
- test/adapters/mysql2_makara.rb
|
106
109
|
- test/adapters/mysql2spatial.rb
|
107
|
-
- test/adapters/mysqlspatial.rb
|
108
110
|
- test/adapters/postgis.rb
|
109
111
|
- test/adapters/postgresql.rb
|
112
|
+
- test/adapters/postgresql_makara.rb
|
110
113
|
- test/adapters/seamless_database_pool.rb
|
111
114
|
- test/adapters/spatialite.rb
|
112
115
|
- test/adapters/sqlite3.rb
|
113
116
|
- test/database.yml.sample
|
114
|
-
- test/em_mysql2/import_test.rb
|
115
117
|
- test/import_test.rb
|
116
118
|
- test/jdbcmysql/import_test.rb
|
117
119
|
- test/jdbcpostgresql/import_test.rb
|
120
|
+
- test/jdbcsqlite3/import_test.rb
|
121
|
+
- test/makara_postgis/import_test.rb
|
122
|
+
- test/models/account.rb
|
123
|
+
- test/models/alarm.rb
|
124
|
+
- test/models/animal.rb
|
125
|
+
- test/models/bike_maker.rb
|
118
126
|
- test/models/book.rb
|
127
|
+
- test/models/car.rb
|
119
128
|
- test/models/chapter.rb
|
129
|
+
- test/models/dictionary.rb
|
130
|
+
- test/models/discount.rb
|
120
131
|
- test/models/end_note.rb
|
121
132
|
- test/models/group.rb
|
133
|
+
- test/models/promotion.rb
|
134
|
+
- test/models/question.rb
|
135
|
+
- test/models/rule.rb
|
136
|
+
- test/models/tag.rb
|
122
137
|
- test/models/topic.rb
|
138
|
+
- test/models/user.rb
|
139
|
+
- test/models/user_token.rb
|
140
|
+
- test/models/vendor.rb
|
123
141
|
- test/models/widget.rb
|
124
|
-
- test/mysql/import_test.rb
|
125
142
|
- test/mysql2/import_test.rb
|
126
|
-
- test/
|
143
|
+
- test/mysql2_makara/import_test.rb
|
127
144
|
- test/mysqlspatial2/import_test.rb
|
128
145
|
- test/postgis/import_test.rb
|
129
146
|
- test/postgresql/import_test.rb
|
130
147
|
- test/schema/generic_schema.rb
|
131
|
-
- test/schema/
|
148
|
+
- test/schema/jdbcpostgresql_schema.rb
|
149
|
+
- test/schema/mysql2_schema.rb
|
150
|
+
- test/schema/postgis_schema.rb
|
151
|
+
- test/schema/postgresql_schema.rb
|
152
|
+
- test/schema/sqlite3_schema.rb
|
132
153
|
- test/schema/version.rb
|
133
154
|
- test/sqlite3/import_test.rb
|
134
155
|
- test/support/active_support/test_case_extensions.rb
|
156
|
+
- test/support/assertions.rb
|
135
157
|
- test/support/factories.rb
|
136
158
|
- test/support/generate.rb
|
137
|
-
- test/support/mysql/assertions.rb
|
138
159
|
- test/support/mysql/import_examples.rb
|
139
160
|
- test/support/postgresql/import_examples.rb
|
161
|
+
- test/support/shared_examples/on_duplicate_key_ignore.rb
|
162
|
+
- test/support/shared_examples/on_duplicate_key_update.rb
|
163
|
+
- test/support/shared_examples/recursive_import.rb
|
164
|
+
- test/support/sqlite3/import_examples.rb
|
140
165
|
- test/synchronize_test.rb
|
141
166
|
- test/test_helper.rb
|
142
|
-
- test/travis/build.sh
|
143
167
|
- test/travis/database.yml
|
144
168
|
- test/value_sets_bytes_parser_test.rb
|
145
169
|
- test/value_sets_records_parser_test.rb
|
146
|
-
homepage:
|
170
|
+
homepage: https://github.com/zdennis/activerecord-import
|
147
171
|
licenses:
|
148
|
-
-
|
172
|
+
- MIT
|
149
173
|
metadata: {}
|
150
|
-
post_install_message:
|
174
|
+
post_install_message:
|
151
175
|
rdoc_options: []
|
152
176
|
require_paths:
|
153
177
|
- lib
|
@@ -155,62 +179,82 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
179
|
requirements:
|
156
180
|
- - ">="
|
157
181
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
182
|
+
version: 2.0.0
|
159
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
184
|
requirements:
|
161
185
|
- - ">="
|
162
186
|
- !ruby/object:Gem::Version
|
163
187
|
version: '0'
|
164
188
|
requirements: []
|
165
|
-
|
166
|
-
|
167
|
-
signing_key:
|
189
|
+
rubygems_version: 3.0.8
|
190
|
+
signing_key:
|
168
191
|
specification_version: 4
|
169
|
-
summary: Bulk
|
192
|
+
summary: Bulk insert extension for ActiveRecord
|
170
193
|
test_files:
|
171
|
-
- test/adapters/em_mysql2.rb
|
172
194
|
- test/adapters/jdbcmysql.rb
|
173
195
|
- test/adapters/jdbcpostgresql.rb
|
174
|
-
- test/adapters/
|
196
|
+
- test/adapters/jdbcsqlite3.rb
|
197
|
+
- test/adapters/makara_postgis.rb
|
175
198
|
- test/adapters/mysql2.rb
|
199
|
+
- test/adapters/mysql2_makara.rb
|
176
200
|
- test/adapters/mysql2spatial.rb
|
177
|
-
- test/adapters/mysqlspatial.rb
|
178
201
|
- test/adapters/postgis.rb
|
179
202
|
- test/adapters/postgresql.rb
|
203
|
+
- test/adapters/postgresql_makara.rb
|
180
204
|
- test/adapters/seamless_database_pool.rb
|
181
205
|
- test/adapters/spatialite.rb
|
182
206
|
- test/adapters/sqlite3.rb
|
183
207
|
- test/database.yml.sample
|
184
|
-
- test/em_mysql2/import_test.rb
|
185
208
|
- test/import_test.rb
|
186
209
|
- test/jdbcmysql/import_test.rb
|
187
210
|
- test/jdbcpostgresql/import_test.rb
|
211
|
+
- test/jdbcsqlite3/import_test.rb
|
212
|
+
- test/makara_postgis/import_test.rb
|
213
|
+
- test/models/account.rb
|
214
|
+
- test/models/alarm.rb
|
215
|
+
- test/models/animal.rb
|
216
|
+
- test/models/bike_maker.rb
|
188
217
|
- test/models/book.rb
|
218
|
+
- test/models/car.rb
|
189
219
|
- test/models/chapter.rb
|
220
|
+
- test/models/dictionary.rb
|
221
|
+
- test/models/discount.rb
|
190
222
|
- test/models/end_note.rb
|
191
223
|
- test/models/group.rb
|
224
|
+
- test/models/promotion.rb
|
225
|
+
- test/models/question.rb
|
226
|
+
- test/models/rule.rb
|
227
|
+
- test/models/tag.rb
|
192
228
|
- test/models/topic.rb
|
229
|
+
- test/models/user.rb
|
230
|
+
- test/models/user_token.rb
|
231
|
+
- test/models/vendor.rb
|
193
232
|
- test/models/widget.rb
|
194
|
-
- test/mysql/import_test.rb
|
195
233
|
- test/mysql2/import_test.rb
|
196
|
-
- test/
|
234
|
+
- test/mysql2_makara/import_test.rb
|
197
235
|
- test/mysqlspatial2/import_test.rb
|
198
236
|
- test/postgis/import_test.rb
|
199
237
|
- test/postgresql/import_test.rb
|
200
238
|
- test/schema/generic_schema.rb
|
201
|
-
- test/schema/
|
239
|
+
- test/schema/jdbcpostgresql_schema.rb
|
240
|
+
- test/schema/mysql2_schema.rb
|
241
|
+
- test/schema/postgis_schema.rb
|
242
|
+
- test/schema/postgresql_schema.rb
|
243
|
+
- test/schema/sqlite3_schema.rb
|
202
244
|
- test/schema/version.rb
|
203
245
|
- test/sqlite3/import_test.rb
|
204
246
|
- test/support/active_support/test_case_extensions.rb
|
247
|
+
- test/support/assertions.rb
|
205
248
|
- test/support/factories.rb
|
206
249
|
- test/support/generate.rb
|
207
|
-
- test/support/mysql/assertions.rb
|
208
250
|
- test/support/mysql/import_examples.rb
|
209
251
|
- test/support/postgresql/import_examples.rb
|
252
|
+
- test/support/shared_examples/on_duplicate_key_ignore.rb
|
253
|
+
- test/support/shared_examples/on_duplicate_key_update.rb
|
254
|
+
- test/support/shared_examples/recursive_import.rb
|
255
|
+
- test/support/sqlite3/import_examples.rb
|
210
256
|
- test/synchronize_test.rb
|
211
257
|
- test/test_helper.rb
|
212
|
-
- test/travis/build.sh
|
213
258
|
- test/travis/database.yml
|
214
259
|
- test/value_sets_bytes_parser_test.rb
|
215
260
|
- test/value_sets_records_parser_test.rb
|
216
|
-
has_rdoc:
|
data/benchmarks/boot.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
begin ; require 'rubygems' ; rescue LoadError ; end
|
2
|
-
require 'active_record' # ActiveRecord loads the Benchmark library automatically
|
3
|
-
require 'active_record/version'
|
4
|
-
require 'fastercsv'
|
5
|
-
require 'fileutils'
|
6
|
-
require 'logger'
|
7
|
-
|
8
|
-
# Files are loaded alphabetically. If this is a problem then manually specify the files
|
9
|
-
# that need to be loaded here.
|
10
|
-
Dir[ File.join( File.dirname( __FILE__ ), 'lib', '*.rb' ) ].sort.each{ |f| require f }
|
11
|
-
|
12
|
-
ActiveRecord::Base.logger = Logger.new STDOUT
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
ActiveRecord::Schema.define do
|
2
|
-
create_table :test_myisam, :options=>'ENGINE=MyISAM', :force=>true do |t|
|
3
|
-
t.column :my_name, :string, :null=>false
|
4
|
-
t.column :description, :string
|
5
|
-
end
|
6
|
-
|
7
|
-
create_table :test_innodb, :options=>'ENGINE=InnoDb', :force=>true do |t|
|
8
|
-
t.column :my_name, :string, :null=>false
|
9
|
-
t.column :description, :string
|
10
|
-
end
|
11
|
-
|
12
|
-
create_table :test_memory, :options=>'ENGINE=Memory', :force=>true do |t|
|
13
|
-
t.column :my_name, :string, :null=>false
|
14
|
-
t.column :description, :string
|
15
|
-
end
|
16
|
-
end
|
data/gemfiles/3.1.gemfile
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
warn <<-MSG
|
2
|
-
[DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
|
3
|
-
is deprecated. Update to autorequire using 'require "activerecord-import"'. See
|
4
|
-
http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
|
5
|
-
MSG
|
6
|
-
|
7
|
-
require "activerecord-import"
|
@@ -1,7 +0,0 @@
|
|
1
|
-
warn <<-MSG
|
2
|
-
[DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
|
3
|
-
is deprecated. Update to autorequire using 'require "activerecord-import"'. See
|
4
|
-
http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
|
5
|
-
MSG
|
6
|
-
|
7
|
-
require "activerecord-import"
|
data/test/adapters/em_mysql2.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ENV["ARE_DB"] = "em_mysql2"
|
data/test/adapters/mysql.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ENV["ARE_DB"] = "mysql"
|
@@ -1 +0,0 @@
|
|
1
|
-
ENV["ARE_DB"] = "mysqlspatial"
|
data/test/mysql/import_test.rb
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
2
|
-
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../support/mysql/assertions')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../support/mysql/import_examples')
|
5
|
-
|
6
|
-
should_support_mysql_import_functionality
|
@@ -1,6 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
2
|
-
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../support/mysql/assertions')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../support/mysql/import_examples')
|
5
|
-
|
6
|
-
should_support_mysql_import_functionality
|
data/test/schema/mysql_schema.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
ActiveRecord::Schema.define do
|
2
|
-
|
3
|
-
create_table :books, :options=>'ENGINE=MyISAM', :force=>true do |t|
|
4
|
-
t.column :title, :string, :null=>false
|
5
|
-
t.column :publisher, :string, :null=>false, :default => 'Default Publisher'
|
6
|
-
t.column :author_name, :string, :null=>false
|
7
|
-
t.column :created_at, :datetime
|
8
|
-
t.column :created_on, :datetime
|
9
|
-
t.column :updated_at, :datetime
|
10
|
-
t.column :updated_on, :datetime
|
11
|
-
t.column :publish_date, :date
|
12
|
-
t.column :topic_id, :integer
|
13
|
-
t.column :for_sale, :boolean, :default => true
|
14
|
-
t.column :status, :integer
|
15
|
-
end
|
16
|
-
execute "ALTER TABLE books ADD FULLTEXT( `title`, `publisher`, `author_name` )"
|
17
|
-
|
18
|
-
end
|
data/test/travis/build.sh
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
set -e
|
3
|
-
set +x
|
4
|
-
|
5
|
-
function run {
|
6
|
-
echo "Running: AR_VERSION=$AR_VERSION $@"
|
7
|
-
$@
|
8
|
-
}
|
9
|
-
|
10
|
-
for activerecord_version in "3.1" "3.2" "4.1" "4.2" ; do
|
11
|
-
export AR_VERSION=$activerecord_version
|
12
|
-
|
13
|
-
bundle update activerecord
|
14
|
-
|
15
|
-
run run bundle exec rake test:em_mysql2 # Run tests for em_mysql2
|
16
|
-
run bundle exec rake test:mysql # Run tests for mysql
|
17
|
-
run bundle exec rake test:mysql2 # Run tests for mysql2
|
18
|
-
run bundle exec rake test:mysql2spatial # Run tests for mysql2spatial
|
19
|
-
run bundle exec rake test:mysqlspatial # Run tests for mysqlspatial
|
20
|
-
run bundle exec rake test:postgis # Run tests for postgis
|
21
|
-
run bundle exec rake test:postgresql # Run tests for postgresql
|
22
|
-
run bundle exec rake test:seamless_database_pool # Run tests for seamless_database_pool
|
23
|
-
run bundle exec rake test:spatialite # Run tests for spatialite
|
24
|
-
# so far the version installed in travis seems < 3.7.11 so we cannot test sqlite3 on it
|
25
|
-
# run bundle exec rake test:sqlite3
|
26
|
-
|
27
|
-
#jruby
|
28
|
-
#bundle exec rake test:jdbcmysql # Run tests for jdbcmysql
|
29
|
-
#bundle exec rake test:jdbcpostgresql # Run tests for jdbcpostgresql
|
30
|
-
done
|