table_saw 3.1.0 → 3.3.0

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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +9 -13
  3. data/.rubocop.yml +3 -3
  4. data/.tool-versions +1 -1
  5. data/Appraisals +6 -7
  6. data/Gemfile +7 -4
  7. data/Gemfile.lock +124 -110
  8. data/README.md +0 -2
  9. data/exe/table-saw +1 -0
  10. data/gemfiles/{activerecord_6.1.0.gemfile → activerecord_7.2.0.gemfile} +7 -5
  11. data/gemfiles/activerecord_7.2.0.gemfile.lock +216 -0
  12. data/gemfiles/{activerecord_7.1.0.gemfile → activerecord_8.0.0.gemfile} +7 -5
  13. data/gemfiles/activerecord_8.0.0.gemfile.lock +218 -0
  14. data/gemfiles/{activerecord_7.0.0.gemfile → activerecord_8.1.0.gemfile} +7 -5
  15. data/gemfiles/activerecord_8.1.0.gemfile.lock +244 -0
  16. data/lib/table_saw/configuration.rb +1 -1
  17. data/lib/table_saw/create_dump_file.rb +3 -3
  18. data/lib/table_saw/dependency_graph/belongs_to_directives.rb +1 -1
  19. data/lib/table_saw/dependency_graph/build.rb +2 -2
  20. data/lib/table_saw/dependency_graph/dump_table.rb +1 -1
  21. data/lib/table_saw/dependency_graph/has_many_directives.rb +1 -1
  22. data/lib/table_saw/formats/copy.rb +1 -1
  23. data/lib/table_saw/formats/insert.rb +1 -1
  24. data/lib/table_saw/manifest.rb +1 -1
  25. data/lib/table_saw/queries/execute_insert_statement.rb +6 -6
  26. data/lib/table_saw/queries/foreign_key_relationships.rb +1 -2
  27. data/lib/table_saw/queries/materialized_views.rb +1 -1
  28. data/lib/table_saw/queries/prepared_insert_statement.rb +1 -1
  29. data/lib/table_saw/queries/serial_sequences.rb +1 -1
  30. data/lib/table_saw/queries/serialize_sql_in_clause.rb +1 -5
  31. data/lib/table_saw/version.rb +1 -1
  32. data/lib/table_saw.rb +18 -2
  33. data/table_saw.gemspec +2 -2
  34. metadata +12 -17
  35. data/gemfiles/activerecord_6.1.0.gemfile.lock +0 -169
  36. data/gemfiles/activerecord_7.0.0.gemfile.lock +0 -169
  37. data/gemfiles/activerecord_7.1.0.gemfile.lock +0 -204
  38. data/lib/table_saw/connection.rb +0 -30
@@ -1,204 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- table_saw (3.1.0)
5
- activerecord (>= 6.0)
6
- pg
7
- thor
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionpack (7.1.2)
13
- actionview (= 7.1.2)
14
- activesupport (= 7.1.2)
15
- nokogiri (>= 1.8.5)
16
- racc
17
- rack (>= 2.2.4)
18
- rack-session (>= 1.0.1)
19
- rack-test (>= 0.6.3)
20
- rails-dom-testing (~> 2.2)
21
- rails-html-sanitizer (~> 1.6)
22
- actionview (7.1.2)
23
- activesupport (= 7.1.2)
24
- builder (~> 3.1)
25
- erubi (~> 1.11)
26
- rails-dom-testing (~> 2.2)
27
- rails-html-sanitizer (~> 1.6)
28
- activemodel (7.1.2)
29
- activesupport (= 7.1.2)
30
- activerecord (7.1.2)
31
- activemodel (= 7.1.2)
32
- activesupport (= 7.1.2)
33
- timeout (>= 0.4.0)
34
- activesupport (7.1.2)
35
- base64
36
- bigdecimal
37
- concurrent-ruby (~> 1.0, >= 1.0.2)
38
- connection_pool (>= 2.2.5)
39
- drb
40
- i18n (>= 1.6, < 2)
41
- minitest (>= 5.1)
42
- mutex_m
43
- tzinfo (~> 2.0)
44
- appraisal (2.5.0)
45
- bundler
46
- rake
47
- thor (>= 0.14.0)
48
- ast (2.4.2)
49
- base64 (0.2.0)
50
- bigdecimal (3.1.5)
51
- builder (3.2.4)
52
- coderay (1.1.3)
53
- combustion (1.3.7)
54
- activesupport (>= 3.0.0)
55
- railties (>= 3.0.0)
56
- thor (>= 0.14.6)
57
- concurrent-ruby (1.2.2)
58
- connection_pool (2.4.1)
59
- crass (1.0.6)
60
- database_cleaner (2.0.2)
61
- database_cleaner-active_record (>= 2, < 3)
62
- database_cleaner-active_record (2.1.0)
63
- activerecord (>= 5.a)
64
- database_cleaner-core (~> 2.0.0)
65
- database_cleaner-core (2.0.1)
66
- diff-lcs (1.5.0)
67
- docile (1.4.0)
68
- drb (2.2.0)
69
- ruby2_keywords
70
- erubi (1.12.0)
71
- i18n (1.14.1)
72
- concurrent-ruby (~> 1.0)
73
- io-console (0.7.1)
74
- irb (1.11.0)
75
- rdoc
76
- reline (>= 0.3.8)
77
- json (2.7.1)
78
- language_server-protocol (3.17.0.3)
79
- loofah (2.22.0)
80
- crass (~> 1.0.2)
81
- nokogiri (>= 1.12.0)
82
- method_source (1.0.0)
83
- minitest (5.20.0)
84
- mutex_m (0.2.0)
85
- nokogiri (1.15.5-x86_64-darwin)
86
- racc (~> 1.4)
87
- nokogiri (1.15.5-x86_64-linux)
88
- racc (~> 1.4)
89
- parallel (1.24.0)
90
- parser (3.2.2.4)
91
- ast (~> 2.4.1)
92
- racc
93
- pg (1.5.4)
94
- pry (0.14.2)
95
- coderay (~> 1.1)
96
- method_source (~> 1.0)
97
- psych (5.1.2)
98
- stringio
99
- racc (1.7.3)
100
- rack (3.0.8)
101
- rack-session (2.0.0)
102
- rack (>= 3.0.0)
103
- rack-test (2.1.0)
104
- rack (>= 1.3)
105
- rackup (2.1.0)
106
- rack (>= 3)
107
- webrick (~> 1.8)
108
- rails-dom-testing (2.2.0)
109
- activesupport (>= 5.0.0)
110
- minitest
111
- nokogiri (>= 1.6)
112
- rails-html-sanitizer (1.6.0)
113
- loofah (~> 2.21)
114
- nokogiri (~> 1.14)
115
- railties (7.1.2)
116
- actionpack (= 7.1.2)
117
- activesupport (= 7.1.2)
118
- irb
119
- rackup (>= 1.0.0)
120
- rake (>= 12.2)
121
- thor (~> 1.0, >= 1.2.2)
122
- zeitwerk (~> 2.6)
123
- rainbow (3.1.1)
124
- rake (13.0.3)
125
- rdoc (6.6.2)
126
- psych (>= 4.0.0)
127
- regexp_parser (2.8.3)
128
- reline (0.4.1)
129
- io-console (~> 0.5)
130
- rexml (3.2.6)
131
- rspec (3.12.0)
132
- rspec-core (~> 3.12.0)
133
- rspec-expectations (~> 3.12.0)
134
- rspec-mocks (~> 3.12.0)
135
- rspec-core (3.12.2)
136
- rspec-support (~> 3.12.0)
137
- rspec-expectations (3.12.3)
138
- diff-lcs (>= 1.2.0, < 2.0)
139
- rspec-support (~> 3.12.0)
140
- rspec-mocks (3.12.6)
141
- diff-lcs (>= 1.2.0, < 2.0)
142
- rspec-support (~> 3.12.0)
143
- rspec-support (3.12.1)
144
- rubocop (1.59.0)
145
- json (~> 2.3)
146
- language_server-protocol (>= 3.17.0)
147
- parallel (~> 1.10)
148
- parser (>= 3.2.2.4)
149
- rainbow (>= 2.2.2, < 4.0)
150
- regexp_parser (>= 1.8, < 3.0)
151
- rexml (>= 3.2.5, < 4.0)
152
- rubocop-ast (>= 1.30.0, < 2.0)
153
- ruby-progressbar (~> 1.7)
154
- unicode-display_width (>= 2.4.0, < 3.0)
155
- rubocop-ast (1.30.0)
156
- parser (>= 3.2.1.0)
157
- rubocop-capybara (2.19.0)
158
- rubocop (~> 1.41)
159
- rubocop-factory_bot (2.24.0)
160
- rubocop (~> 1.33)
161
- rubocop-rspec (2.25.0)
162
- rubocop (~> 1.40)
163
- rubocop-capybara (~> 2.17)
164
- rubocop-factory_bot (~> 2.22)
165
- ruby-progressbar (1.13.0)
166
- ruby2_keywords (0.0.5)
167
- scenic (1.7.0)
168
- activerecord (>= 4.0.0)
169
- railties (>= 4.0.0)
170
- simplecov (0.22.0)
171
- docile (~> 1.1)
172
- simplecov-html (~> 0.11)
173
- simplecov_json_formatter (~> 0.1)
174
- simplecov-html (0.12.3)
175
- simplecov_json_formatter (0.1.4)
176
- stringio (3.1.0)
177
- thor (1.3.0)
178
- timeout (0.4.1)
179
- tzinfo (2.0.6)
180
- concurrent-ruby (~> 1.0)
181
- unicode-display_width (2.5.0)
182
- webrick (1.8.1)
183
- zeitwerk (2.6.12)
184
-
185
- PLATFORMS
186
- x86_64-darwin-22
187
- x86_64-linux
188
-
189
- DEPENDENCIES
190
- activerecord (~> 7.1, < 7.2)
191
- appraisal
192
- bundler (~> 2.0)
193
- combustion (~> 1.3)
194
- database_cleaner (~> 2)
195
- pry
196
- rake (= 13.0.3)
197
- rspec (~> 3.0)
198
- rubocop-rspec (~> 2.3)
199
- scenic (~> 1.5)
200
- simplecov (~> 0.16)
201
- table_saw!
202
-
203
- BUNDLED WITH
204
- 2.4.13
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_record'
4
-
5
- require 'active_record/connection_adapters/abstract/connection_pool'
6
- require 'active_record/connection_adapters/postgresql_adapter'
7
-
8
- module TableSaw
9
- module Connection
10
- def self.with
11
- raise ArgumentError, 'requires a block' unless block_given?
12
-
13
- yield adapter.raw_connection
14
- end
15
-
16
- def self.exec(sql)
17
- TableSaw::Connection.with do |conn|
18
- conn.exec(sql)
19
- end
20
- end
21
-
22
- def self.adapter
23
- @adapter ||= begin
24
- config = TableSaw.configuration.connection
25
- conn = ::PG::Connection.new(config)
26
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.new(conn, nil, config, {})
27
- end
28
- end
29
- end
30
- end