From f04383ecfd59074e30ec7f7d50567130cbbda624 Mon Sep 17 00:00:00 2001 From: Hamed Asghari Date: Tue, 26 Dec 2023 17:33:26 -0700 Subject: [PATCH] Update activerecord dependency in lockfiles --- .github/workflows/ruby.yml | 1 + Appraisals | 5 + Gemfile.lock | 148 ++++++++----- gemfiles/activerecord_6.1.0.gemfile.lock | 34 ++- gemfiles/activerecord_7.0.0.gemfile.lock | 34 ++- gemfiles/activerecord_7.1.0.gemfile | 17 ++ gemfiles/activerecord_7.1.0.gemfile.lock | 204 ++++++++++++++++++ lib/table_saw/formats/copy.rb | 6 +- .../queries/execute_insert_statement.rb | 8 +- .../queries/prepared_insert_statement.rb | 2 +- 10 files changed, 359 insertions(+), 100 deletions(-) create mode 100644 gemfiles/activerecord_7.1.0.gemfile create mode 100644 gemfiles/activerecord_7.1.0.gemfile.lock diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 2dc5b27..b08f600 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -16,6 +16,7 @@ jobs: activerecord: - '6.1.0' - '7.0.0' + - '7.1.0' env: BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/activerecord_${{ matrix.activerecord }}.gemfile diff --git a/Appraisals b/Appraisals index 99e65a8..3ce321f 100644 --- a/Appraisals +++ b/Appraisals @@ -7,3 +7,8 @@ end appraise 'activerecord-7.0.0' do gem 'activerecord', '~> 7.0', '< 7.1' end + +appraise 'activerecord-7.1.0' do + gem 'activerecord', '~> 7.1', '< 7.2' +end + diff --git a/Gemfile.lock b/Gemfile.lock index 122b0fd..91ffb28 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,34 +9,45 @@ PATH GEM remote: https://rubygems.org/ specs: - actionpack (7.0.5) - actionview (= 7.0.5) - activesupport (= 7.0.5) - rack (~> 2.0, >= 2.2.4) + actionpack (7.1.2) + actionview (= 7.1.2) + activesupport (= 7.1.2) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4) + rack-session (>= 1.0.1) rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actionview (7.0.5) - activesupport (= 7.0.5) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actionview (7.1.2) + activesupport (= 7.1.2) builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activemodel (7.0.5) - activesupport (= 7.0.5) - activerecord (7.0.5) - activemodel (= 7.0.5) - activesupport (= 7.0.5) - activesupport (7.0.5) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activemodel (7.1.2) + activesupport (= 7.1.2) + activerecord (7.1.2) + activemodel (= 7.1.2) + activesupport (= 7.1.2) + timeout (>= 0.4.0) + activesupport (7.1.2) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) minitest (>= 5.1) + mutex_m tzinfo (~> 2.0) - appraisal (2.4.1) + appraisal (2.5.0) bundler rake thor (>= 0.14.0) ast (2.4.2) + base64 (0.2.0) + bigdecimal (3.1.5) builder (3.2.4) coderay (1.1.3) combustion (1.3.7) @@ -44,6 +55,7 @@ GEM railties (>= 3.0.0) thor (>= 0.14.6) concurrent-ruby (1.2.2) + connection_pool (2.4.1) crass (1.0.6) database_cleaner (2.0.2) database_cleaner-active_record (>= 2, < 3) @@ -53,46 +65,69 @@ GEM database_cleaner-core (2.0.1) diff-lcs (1.5.0) docile (1.4.0) + drb (2.2.0) + ruby2_keywords erubi (1.12.0) - i18n (1.13.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.3) - loofah (2.21.3) + io-console (0.7.1) + irb (1.11.0) + rdoc + reline (>= 0.3.8) + json (2.7.1) + language_server-protocol (3.17.0.3) + loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) method_source (1.0.0) - mini_portile2 (2.8.2) - minitest (5.18.0) - nokogiri (1.15.2) + mini_portile2 (2.8.5) + minitest (5.20.0) + mutex_m (0.2.0) + nokogiri (1.15.5) mini_portile2 (~> 2.8.2) racc (~> 1.4) - parallel (1.23.0) - parser (3.2.2.1) + parallel (1.24.0) + parser (3.2.2.4) ast (~> 2.4.1) - pg (1.5.3) + racc + pg (1.5.4) pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) - racc (1.6.2) - rack (2.2.7) + psych (5.1.2) + stringio + racc (1.7.3) + rack (3.0.8) + rack-session (2.0.0) + rack (>= 3.0.0) rack-test (2.1.0) rack (>= 1.3) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.5.0) - loofah (~> 2.19, >= 2.19.1) - railties (7.0.5) - actionpack (= 7.0.5) - activesupport (= 7.0.5) - method_source + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.1.2) + actionpack (= 7.1.2) + activesupport (= 7.1.2) + irb + rackup (>= 1.0.0) rake (>= 12.2) - thor (~> 1.0) - zeitwerk (~> 2.5) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.0.3) - regexp_parser (2.8.0) - rexml (3.2.5) + rdoc (6.6.2) + psych (>= 4.0.0) + regexp_parser (2.8.3) + reline (0.4.1) + io-console (~> 0.5) + rexml (3.2.6) rspec (3.12.0) rspec-core (~> 3.12.0) rspec-expectations (~> 3.12.0) @@ -102,31 +137,33 @@ GEM rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-mocks (3.12.5) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-support (3.12.0) - rubocop (1.51.0) + rspec-support (3.12.1) + rubocop (1.59.0) json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.0.0) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.0, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.28.1) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) - rubocop-capybara (2.18.0) + rubocop-capybara (2.19.0) rubocop (~> 1.41) - rubocop-factory_bot (2.23.1) - rubocop (~> 1.33) - rubocop-rspec (2.22.0) + rubocop-factory_bot (2.24.0) rubocop (~> 1.33) + rubocop-rspec (2.25.0) + rubocop (~> 1.40) rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) scenic (1.7.0) activerecord (>= 4.0.0) railties (>= 4.0.0) @@ -136,11 +173,14 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - thor (1.2.2) + stringio (3.1.0) + thor (1.3.0) + timeout (0.4.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.4.2) - zeitwerk (2.6.8) + unicode-display_width (2.5.0) + webrick (1.8.1) + zeitwerk (2.6.12) PLATFORMS ruby diff --git a/gemfiles/activerecord_6.1.0.gemfile.lock b/gemfiles/activerecord_6.1.0.gemfile.lock index ddf4074..fbd9a66 100644 --- a/gemfiles/activerecord_6.1.0.gemfile.lock +++ b/gemfiles/activerecord_6.1.0.gemfile.lock @@ -38,7 +38,6 @@ GEM rake thor (>= 0.14.0) ast (2.4.2) - base64 (0.1.1) builder (3.2.4) coderay (1.1.3) combustion (1.3.7) @@ -58,26 +57,26 @@ GEM erubi (1.12.0) i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.3) + json (2.7.1) language_server-protocol (3.17.0.3) - loofah (2.21.3) + loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) method_source (1.0.0) minitest (5.20.0) - nokogiri (1.15.4-x86_64-darwin) + nokogiri (1.15.5-x86_64-darwin) racc (~> 1.4) - nokogiri (1.15.4-x86_64-linux) + nokogiri (1.15.5-x86_64-linux) racc (~> 1.4) - parallel (1.23.0) - parser (3.2.2.3) + parallel (1.24.0) + parser (3.2.2.4) ast (~> 2.4.1) racc pg (1.5.4) pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) - racc (1.7.1) + racc (1.7.3) rack (2.2.8) rack-test (2.1.0) rack (>= 1.3) @@ -96,7 +95,7 @@ GEM thor (~> 1.0) rainbow (3.1.1) rake (13.0.3) - regexp_parser (2.8.1) + regexp_parser (2.8.3) rexml (3.2.6) rspec (3.12.0) rspec-core (~> 3.12.0) @@ -111,26 +110,25 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-support (3.12.1) - rubocop (1.56.4) - base64 (~> 0.1.1) + rubocop (1.59.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.3) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.29.0) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) rubocop-capybara (2.19.0) rubocop (~> 1.41) rubocop-factory_bot (2.24.0) rubocop (~> 1.33) - rubocop-rspec (2.24.1) - rubocop (~> 1.33) + rubocop-rspec (2.25.0) + rubocop (~> 1.40) rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) @@ -143,10 +141,10 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - thor (1.2.2) + thor (1.3.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.4.2) + unicode-display_width (2.5.0) zeitwerk (2.6.12) PLATFORMS diff --git a/gemfiles/activerecord_7.0.0.gemfile.lock b/gemfiles/activerecord_7.0.0.gemfile.lock index 98656fe..363da7c 100644 --- a/gemfiles/activerecord_7.0.0.gemfile.lock +++ b/gemfiles/activerecord_7.0.0.gemfile.lock @@ -37,7 +37,6 @@ GEM rake thor (>= 0.14.0) ast (2.4.2) - base64 (0.1.1) builder (3.2.4) coderay (1.1.3) combustion (1.3.7) @@ -57,26 +56,26 @@ GEM erubi (1.12.0) i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.3) + json (2.7.1) language_server-protocol (3.17.0.3) - loofah (2.21.3) + loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) method_source (1.0.0) minitest (5.20.0) - nokogiri (1.15.4-x86_64-darwin) + nokogiri (1.15.5-x86_64-darwin) racc (~> 1.4) - nokogiri (1.15.4-x86_64-linux) + nokogiri (1.15.5-x86_64-linux) racc (~> 1.4) - parallel (1.23.0) - parser (3.2.2.3) + parallel (1.24.0) + parser (3.2.2.4) ast (~> 2.4.1) racc pg (1.5.4) pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) - racc (1.7.1) + racc (1.7.3) rack (2.2.8) rack-test (2.1.0) rack (>= 1.3) @@ -96,7 +95,7 @@ GEM zeitwerk (~> 2.5) rainbow (3.1.1) rake (13.0.3) - regexp_parser (2.8.1) + regexp_parser (2.8.3) rexml (3.2.6) rspec (3.12.0) rspec-core (~> 3.12.0) @@ -111,26 +110,25 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-support (3.12.1) - rubocop (1.56.4) - base64 (~> 0.1.1) + rubocop (1.59.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.3) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.29.0) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) rubocop-capybara (2.19.0) rubocop (~> 1.41) rubocop-factory_bot (2.24.0) rubocop (~> 1.33) - rubocop-rspec (2.24.1) - rubocop (~> 1.33) + rubocop-rspec (2.25.0) + rubocop (~> 1.40) rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) @@ -143,10 +141,10 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - thor (1.2.2) + thor (1.3.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.4.2) + unicode-display_width (2.5.0) zeitwerk (2.6.12) PLATFORMS diff --git a/gemfiles/activerecord_7.1.0.gemfile b/gemfiles/activerecord_7.1.0.gemfile new file mode 100644 index 0000000..9d0ec00 --- /dev/null +++ b/gemfiles/activerecord_7.1.0.gemfile @@ -0,0 +1,17 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "bundler", "~> 2.0" +gem "combustion", "~> 1.3" +gem "database_cleaner", "~> 2" +gem "pry" +gem "rake", "13.0.3" +gem "rspec", "~> 3.0" +gem "rubocop-rspec", "~> 2.3" +gem "scenic", "~> 1.5" +gem "simplecov", "~> 0.16" +gem "activerecord", "~> 7.1", "< 7.2" + +gemspec path: "../" diff --git a/gemfiles/activerecord_7.1.0.gemfile.lock b/gemfiles/activerecord_7.1.0.gemfile.lock new file mode 100644 index 0000000..8d94b87 --- /dev/null +++ b/gemfiles/activerecord_7.1.0.gemfile.lock @@ -0,0 +1,204 @@ +PATH + remote: .. + specs: + table_saw (3.0.0) + activerecord (>= 6.0) + pg + thor + +GEM + remote: https://rubygems.org/ + specs: + actionpack (7.1.2) + actionview (= 7.1.2) + activesupport (= 7.1.2) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4) + rack-session (>= 1.0.1) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actionview (7.1.2) + activesupport (= 7.1.2) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activemodel (7.1.2) + activesupport (= 7.1.2) + activerecord (7.1.2) + activemodel (= 7.1.2) + activesupport (= 7.1.2) + timeout (>= 0.4.0) + activesupport (7.1.2) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + minitest (>= 5.1) + mutex_m + tzinfo (~> 2.0) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + base64 (0.2.0) + bigdecimal (3.1.5) + builder (3.2.4) + coderay (1.1.3) + combustion (1.3.7) + activesupport (>= 3.0.0) + railties (>= 3.0.0) + thor (>= 0.14.6) + concurrent-ruby (1.2.2) + connection_pool (2.4.1) + crass (1.0.6) + database_cleaner (2.0.2) + database_cleaner-active_record (>= 2, < 3) + database_cleaner-active_record (2.1.0) + activerecord (>= 5.a) + database_cleaner-core (~> 2.0.0) + database_cleaner-core (2.0.1) + diff-lcs (1.5.0) + docile (1.4.0) + drb (2.2.0) + ruby2_keywords + erubi (1.12.0) + i18n (1.14.1) + concurrent-ruby (~> 1.0) + io-console (0.7.1) + irb (1.11.0) + rdoc + reline (>= 0.3.8) + json (2.7.1) + language_server-protocol (3.17.0.3) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + method_source (1.0.0) + minitest (5.20.0) + mutex_m (0.2.0) + nokogiri (1.15.5-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.15.5-x86_64-linux) + racc (~> 1.4) + parallel (1.24.0) + parser (3.2.2.4) + ast (~> 2.4.1) + racc + pg (1.5.4) + pry (0.14.2) + coderay (~> 1.1) + method_source (~> 1.0) + psych (5.1.2) + stringio + racc (1.7.3) + rack (3.0.8) + rack-session (2.0.0) + rack (>= 3.0.0) + rack-test (2.1.0) + rack (>= 1.3) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.1.2) + actionpack (= 7.1.2) + activesupport (= 7.1.2) + irb + rackup (>= 1.0.0) + rake (>= 12.2) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) + rainbow (3.1.1) + rake (13.0.3) + rdoc (6.6.2) + psych (>= 4.0.0) + regexp_parser (2.8.3) + reline (0.4.1) + io-console (~> 0.5) + rexml (3.2.6) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-support (3.12.1) + rubocop (1.59.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.2.2.4) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.30.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) + rubocop-capybara (2.19.0) + rubocop (~> 1.41) + rubocop-factory_bot (2.24.0) + rubocop (~> 1.33) + rubocop-rspec (2.25.0) + rubocop (~> 1.40) + rubocop-capybara (~> 2.17) + rubocop-factory_bot (~> 2.22) + ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) + scenic (1.7.0) + activerecord (>= 4.0.0) + railties (>= 4.0.0) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.12.3) + simplecov_json_formatter (0.1.4) + stringio (3.1.0) + thor (1.3.0) + timeout (0.4.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (2.5.0) + webrick (1.8.1) + zeitwerk (2.6.12) + +PLATFORMS + x86_64-darwin-22 + x86_64-linux + +DEPENDENCIES + activerecord (~> 7.1, < 7.2) + appraisal + bundler (~> 2.0) + combustion (~> 1.3) + database_cleaner (~> 2) + pry + rake (= 13.0.3) + rspec (~> 3.0) + rubocop-rspec (~> 2.3) + scenic (~> 1.5) + simplecov (~> 0.16) + table_saw! + +BUNDLED WITH + 2.4.13 diff --git a/lib/table_saw/formats/copy.rb b/lib/table_saw/formats/copy.rb index 5bf955b..847eed9 100644 --- a/lib/table_saw/formats/copy.rb +++ b/lib/table_saw/formats/copy.rb @@ -20,13 +20,9 @@ def dump_row(row) def quoted_columns TableSaw.schema_cache.columns_hash(table_name) .each_key - .map { |name| connection.quote_column_name(name) } + .map { |name| TableSaw::Connection.adapter.quote_column_name(name) } .join(', ') end - - def connection - TableSaw.schema_cache.connection - end end end end diff --git a/lib/table_saw/queries/execute_insert_statement.rb b/lib/table_saw/queries/execute_insert_statement.rb index d39887b..d2d777e 100644 --- a/lib/table_saw/queries/execute_insert_statement.rb +++ b/lib/table_saw/queries/execute_insert_statement.rb @@ -22,13 +22,13 @@ def values .join(', ') end - def connection - TableSaw.schema_cache.connection + def adapter + TableSaw::Connection.adapter end def quote_value(column, value) - type = connection.lookup_cast_type_from_column(column) - connection.quote(type.serialize(type.deserialize(value))) + type = adapter.lookup_cast_type_from_column(column) + adapter.quote(type.serialize(type.deserialize(value))) end end end diff --git a/lib/table_saw/queries/prepared_insert_statement.rb b/lib/table_saw/queries/prepared_insert_statement.rb index 574d240..91a604e 100644 --- a/lib/table_saw/queries/prepared_insert_statement.rb +++ b/lib/table_saw/queries/prepared_insert_statement.rb @@ -32,7 +32,7 @@ def column_types def column_names TableSaw.schema_cache.columns(table_name) - .map { |column| TableSaw.schema_cache.connection.quote_column_name(column.name) } + .map { |column| TableSaw::Connection.adapter.quote_column_name(column.name) } .join(', ') end