Sha256: 64a4b4c5065671e26d3c0831f3c8ff80cc1d3082c02c794ff46eb7e5a81ecbd5

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

module DdlHelper
  def with_example_table(connection, table_name, definition = nil)
    connection.execute("CREATE TABLE #{table_name}(#{definition})")
    yield
  ensure
    connection.execute("DROP TABLE #{table_name}")
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/support/ddl_helper.rb
ibm_db-5.4.1 test/support/ddl_helper.rb
ibm_db-5.4.0 test/support/ddl_helper.rb
ibm_db-5.3.2 test/support/ddl_helper.rb
ibm_db-5.3.1 test/support/ddl_helper.rb
ruby-on-quails-0.1.0 activerecord/test/support/ddl_helper.rb