ibm_db 2.5.17-universal-darwin-13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES +221 -0
  3. data/LICENSE +18 -0
  4. data/MANIFEST +14 -0
  5. data/ParameterizedQueries README +39 -0
  6. data/README +225 -0
  7. data/ext/Makefile.nt32 +181 -0
  8. data/ext/Makefile.nt32.191 +212 -0
  9. data/ext/extconf.rb +127 -0
  10. data/ext/ibm_db.c +11719 -0
  11. data/ext/ruby_ibm_db.h +240 -0
  12. data/ext/ruby_ibm_db_cli.c +845 -0
  13. data/ext/ruby_ibm_db_cli.h +489 -0
  14. data/init.rb +42 -0
  15. data/lib/IBM_DB.rb +16 -0
  16. data/lib/active_record/connection_adapters/ibm_db_adapter.rb +3031 -0
  17. data/lib/active_record/connection_adapters/ibm_db_pstmt.rb +1965 -0
  18. data/lib/active_record/connection_adapters/ibmdb_adapter.rb +2 -0
  19. data/lib/active_record/vendor/db2-i5-zOS.yaml +328 -0
  20. data/lib/linux/rb18x/ibm_db.bundle +0 -0
  21. data/lib/linux/rb19x/ibm_db.bundle +0 -0
  22. data/lib/linux/rb20x/ibm_db.bundle +0 -0
  23. data/lib/linux/rb21x/ibm_db.bundle +0 -0
  24. data/test/cases/adapter_test.rb +207 -0
  25. data/test/cases/associations/belongs_to_associations_test.rb +711 -0
  26. data/test/cases/associations/cascaded_eager_loading_test.rb +181 -0
  27. data/test/cases/associations/has_and_belongs_to_many_associations_test.rb +851 -0
  28. data/test/cases/associations/join_model_test.rb +743 -0
  29. data/test/cases/attribute_methods_test.rb +822 -0
  30. data/test/cases/base_test.rb +2133 -0
  31. data/test/cases/calculations_test.rb +482 -0
  32. data/test/cases/migration_test.rb +2408 -0
  33. data/test/cases/persistence_test.rb +642 -0
  34. data/test/cases/query_cache_test.rb +257 -0
  35. data/test/cases/relations_test.rb +1182 -0
  36. data/test/cases/schema_dumper_test.rb +256 -0
  37. data/test/cases/transaction_callbacks_test.rb +300 -0
  38. data/test/cases/validations/uniqueness_validation_test.rb +299 -0
  39. data/test/cases/xml_serialization_test.rb +408 -0
  40. data/test/config.yml +154 -0
  41. data/test/connections/native_ibm_db/connection.rb +44 -0
  42. data/test/ibm_db_test.rb +25 -0
  43. data/test/models/warehouse_thing.rb +5 -0
  44. data/test/schema/i5/ibm_db_specific_schema.rb +137 -0
  45. data/test/schema/ids/ibm_db_specific_schema.rb +140 -0
  46. data/test/schema/luw/ibm_db_specific_schema.rb +137 -0
  47. data/test/schema/schema.rb +751 -0
  48. data/test/schema/zOS/ibm_db_specific_schema.rb +208 -0
  49. metadata +109 -0
@@ -0,0 +1,208 @@
1
+ =begin
2
+ ActiveRecord::Schema.define do
3
+
4
+ execute "DROP TABLE COMMENTS" rescue nil
5
+ execute "DROP TABLE POSTS" rescue nil
6
+ execute "DROP TABLE ITEMS" rescue nil
7
+ execute "DROP TABLE TOPICS" rescue nil
8
+ execute "DROP TABLE fk_test_has_fk" rescue nil
9
+ execute "DROP TABLE fk_test_has_pk" rescue nil
10
+ execute "DROP TABLE CIRCLES" rescue nil
11
+ execute "DROP TABLE SQUARES" rescue nil
12
+ execute "DROP TABLE TRIANGLES" rescue nil
13
+ execute "DROP TABLE NON_POLY_ONES" rescue nil
14
+ execute "DROP TABLE NON_POLY_TWOS" rescue nil
15
+ execute "DROP TABLE PAINT_COLORS" rescue nil
16
+ execute "DROP TABLE PAINT_TEXTURES" rescue nil
17
+
18
+ execute <<_SQL
19
+ CREATE TABLE comments (
20
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 100),
21
+ post_id INT NOT NULL,
22
+ type VARCHAR(255) DEFAULT NULL,
23
+ body VARCHAR(3000)NOT NULL,
24
+ PRIMARY KEY (id)
25
+ );
26
+ _SQL
27
+
28
+ execute <<_SQL
29
+ CREATE UNIQUE INDEX comments_id_idx ON comments(id);
30
+ _SQL
31
+
32
+ execute <<_SQL
33
+ CREATE TABLE posts (
34
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 100),
35
+ author_id INT DEFAULT NULL,
36
+ title VARCHAR(255) NOT NULL,
37
+ type VARCHAR(255) DEFAULT NULL,
38
+ body VARCHAR(3000) NOT NULL,
39
+ comments_count integer DEFAULT 0,
40
+ taggings_count integer DEFAULT 0,
41
+ PRIMARY KEY (id)
42
+ );
43
+
44
+ _SQL
45
+
46
+ execute <<_SQL
47
+ CREATE UNIQUE INDEX posts_id_idx ON posts(id);
48
+ _SQL
49
+
50
+ execute <<_SQL
51
+ CREATE TABLE fk_test_has_pk (
52
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 100),
53
+ PRIMARY KEY (id)
54
+ );
55
+ _SQL
56
+
57
+ execute <<_SQL
58
+ CREATE UNIQUE INDEX fk_has_pk_id_idx ON fk_test_has_pk(id);
59
+ _SQL
60
+
61
+ execute <<_SQL
62
+ CREATE TABLE fk_test_has_fk (
63
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 100),
64
+ fk_id integer NOT NULL,
65
+ PRIMARY KEY (id),
66
+ FOREIGN KEY (fk_id) REFERENCES fk_test_has_pk(id)
67
+ );
68
+ _SQL
69
+
70
+ execute <<_SQL
71
+ CREATE UNIQUE INDEX fk_has_fk_id_idx ON fk_test_has_fk(id);
72
+ _SQL
73
+
74
+ execute <<_SQL
75
+ CREATE TABLE items (
76
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 100),
77
+ name VARCHAR(255) DEFAULT NULL,
78
+ PRIMARY KEY (id)
79
+ );
80
+
81
+ _SQL
82
+
83
+ execute <<_SQL
84
+ CREATE UNIQUE INDEX items_id_idx ON items(id);
85
+ _SQL
86
+
87
+ execute <<_SQL
88
+ CREATE TABLE circles (
89
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 1),
90
+ PRIMARY KEY (id)
91
+ );
92
+ _SQL
93
+
94
+ execute <<_SQL
95
+ CREATE UNIQUE INDEX circles_id_idx ON circles(id);
96
+ _SQL
97
+
98
+ execute <<_SQL
99
+ CREATE TABLE squares(
100
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 1),
101
+ PRIMARY KEY (id)
102
+ );
103
+ _SQL
104
+
105
+ execute <<_SQL
106
+ CREATE UNIQUE INDEX squares_id_idx ON squares(id);
107
+ _SQL
108
+
109
+ execute <<_SQL
110
+ CREATE TABLE triangles(
111
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 1),
112
+ PRIMARY KEY (id)
113
+ );
114
+ _SQL
115
+
116
+ execute <<_SQL
117
+ CREATE UNIQUE INDEX triangles_id_idx ON triangles(id);
118
+ _SQL
119
+
120
+ execute <<_SQL
121
+ CREATE TABLE non_poly_ones(
122
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 1),
123
+ PRIMARY KEY (id)
124
+ );
125
+ _SQL
126
+
127
+ execute <<_SQL
128
+ CREATE UNIQUE INDEX non_poly_ones_id_idx ON non_poly_ones(id);
129
+ _SQL
130
+
131
+ execute <<_SQL
132
+ CREATE TABLE non_poly_twos(
133
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 1),
134
+ PRIMARY KEY (id)
135
+ );
136
+ _SQL
137
+
138
+ execute <<_SQL
139
+ CREATE UNIQUE INDEX non_poly_twos_id_idx ON non_poly_twos(id);
140
+ _SQL
141
+
142
+ execute <<_SQL
143
+ CREATE TABLE paint_colors(
144
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 1),
145
+ non_poly_one_id INT,
146
+ PRIMARY KEY (id)
147
+ );
148
+ _SQL
149
+
150
+ execute <<_SQL
151
+ CREATE UNIQUE INDEX paint_colors_id_idx ON paint_colors(id);
152
+ _SQL
153
+
154
+ execute <<_SQL
155
+ CREATE TABLE paint_textures(
156
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 1),
157
+ non_poly_two_id INT,
158
+ PRIMARY KEY (id)
159
+ );
160
+ _SQL
161
+
162
+ execute <<_SQL
163
+ CREATE UNIQUE INDEX paint_textures_id_idx ON paint_textures(id);
164
+ _SQL
165
+
166
+ execute <<_SQL
167
+ CREATE TABLE topics (
168
+ id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 100),
169
+ title VARCHAR(255) DEFAULT NULL,
170
+ author_name VARCHAR(255) DEFAULT NULL,
171
+ author_email_address VARCHAR(255) DEFAULT NULL,
172
+ written_on TIMESTAMP DEFAULT NULL,
173
+ bonus_time TIME DEFAULT NULL,
174
+ last_read DATE DEFAULT NULL,
175
+ content VARCHAR(3000),
176
+ approved SMALLINT DEFAULT 1,
177
+ replies_count INT DEFAULT 0,
178
+ parent_id INT DEFAULT NULL,
179
+ parent_title VARCHAR(255) DEFAULT NULL,
180
+ type VARCHAR(50) DEFAULT NULL,
181
+ group VARCHAR(50) DEFAULT NULL,
182
+ PRIMARY KEY (id)
183
+ );
184
+
185
+ _SQL
186
+
187
+ execute <<_SQL
188
+ CREATE UNIQUE INDEX topics_id_idx ON topics(id);
189
+ _SQL
190
+
191
+ execute <<_SQL
192
+ CREATE UNIQUE INDEX movies_id_idx ON movies(movieid);
193
+ _SQL
194
+
195
+ execute <<_SQL
196
+ CREATE UNIQUE INDEX auto_id_tests_id_idx ON auto_id_tests(auto_id);
197
+ _SQL
198
+
199
+ execute <<_SQL
200
+ CREATE UNIQUE INDEX mixed_case_monkeys_id_idx ON mixed_case_monkeys(monkeyID);
201
+ _SQL
202
+
203
+ execute <<_SQL
204
+ CREATE UNIQUE INDEX keyboards_id_idx ON keyboards(key_number);
205
+ _SQL
206
+
207
+ end
208
+ =end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ibm_db
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.5.17
5
+ platform: universal-darwin-13
6
+ authors:
7
+ - IBM
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.15.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.15.1
27
+ description:
28
+ email: rubyibm-developers@rubyforge.org
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files:
32
+ - CHANGES
33
+ - README
34
+ - MANIFEST
35
+ files:
36
+ - CHANGES
37
+ - ext/extconf.rb
38
+ - ext/ibm_db.c
39
+ - ext/Makefile.nt32
40
+ - ext/Makefile.nt32.191
41
+ - ext/ruby_ibm_db.h
42
+ - ext/ruby_ibm_db_cli.c
43
+ - ext/ruby_ibm_db_cli.h
44
+ - init.rb
45
+ - lib/active_record/connection_adapters/ibm_db_adapter.rb
46
+ - lib/active_record/connection_adapters/ibm_db_pstmt.rb
47
+ - lib/active_record/connection_adapters/ibmdb_adapter.rb
48
+ - lib/active_record/vendor/db2-i5-zOS.yaml
49
+ - lib/IBM_DB.rb
50
+ - lib/linux/rb18x/ibm_db.bundle
51
+ - lib/linux/rb19x/ibm_db.bundle
52
+ - lib/linux/rb20x/ibm_db.bundle
53
+ - lib/linux/rb21x/ibm_db.bundle
54
+ - LICENSE
55
+ - MANIFEST
56
+ - ParameterizedQueries README
57
+ - README
58
+ - test/cases/adapter_test.rb
59
+ - test/cases/associations/belongs_to_associations_test.rb
60
+ - test/cases/associations/cascaded_eager_loading_test.rb
61
+ - test/cases/associations/has_and_belongs_to_many_associations_test.rb
62
+ - test/cases/associations/join_model_test.rb
63
+ - test/cases/attribute_methods_test.rb
64
+ - test/cases/base_test.rb
65
+ - test/cases/calculations_test.rb
66
+ - test/cases/migration_test.rb
67
+ - test/cases/persistence_test.rb
68
+ - test/cases/query_cache_test.rb
69
+ - test/cases/relations_test.rb
70
+ - test/cases/schema_dumper_test.rb
71
+ - test/cases/transaction_callbacks_test.rb
72
+ - test/cases/validations/uniqueness_validation_test.rb
73
+ - test/cases/xml_serialization_test.rb
74
+ - test/config.yml
75
+ - test/connections/native_ibm_db/connection.rb
76
+ - test/ibm_db_test.rb
77
+ - test/models/warehouse_thing.rb
78
+ - test/schema/i5/ibm_db_specific_schema.rb
79
+ - test/schema/ids/ibm_db_specific_schema.rb
80
+ - test/schema/luw/ibm_db_specific_schema.rb
81
+ - test/schema/schema.rb
82
+ - test/schema/zOS/ibm_db_specific_schema.rb
83
+ homepage: http://rubyforge.org/projects/rubyibm/
84
+ licenses: []
85
+ metadata: {}
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: 1.8.6
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ requirements:
101
+ - ActiveRecord, at least 1.15.1
102
+ rubyforge_project: rubyibm
103
+ rubygems_version: 2.0.3
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: 'Rails Driver and Adapter for IBM Data Servers: {DB2 on Linux/Unix/Windows,
107
+ DB2 on zOS, DB2 on i5/OS, Informix (IDS)}'
108
+ test_files:
109
+ - test/ibm_db_test.rb