Sha256: abc5e11d58cb6f6c4685ac898ded23c5943117defa71b2004f8a4d1e943d40e2

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module CockroachDB
      module DatabaseStatements
        # Overridden to avoid using transactions for schema creation.
        def insert_fixtures_set(fixture_set, tables_to_delete = [])
          fixture_inserts = build_fixture_statements(fixture_set)
          table_deletes = tables_to_delete.map { |table| "DELETE FROM #{quote_table_name(table)}" }
          statements = table_deletes + fixture_inserts

          with_multi_statements do
            disable_referential_integrity do
              execute_batch(statements, "Fixtures Load")
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-cockroachdb-adapter-7.1.1 lib/active_record/connection_adapters/cockroachdb/database_statements.rb
activerecord-cockroachdb-adapter-7.1.0 lib/active_record/connection_adapters/cockroachdb/database_statements.rb