Sha256: ba86dc46153ca6d1f850b008220efdcb92ae033bbe4ed8f48403a13d2837886a

Contents?: true

Size: 232 Bytes

Versions: 20

Compression:

Stored size: 232 Bytes

Contents

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

20 entries across 20 versions & 3 rubygems

Version Path
ibm_db-5.2.0 test/support/ddl_helper.rb
ibm_db-5.1.0 test/support/ddl_helper.rb
ibm_db-5.0.5 test/support/ddl_helper.rb
ibm_db-5.0.4 test/support/ddl_helper.rb
ibm_db-5.0.3 test/support/ddl_helper.rb
ibm_db-5.0.2 test/support/ddl_helper.rb
ibm_db-4.0.0-x86-mingw32 test/support/ddl_helper.rb
ibm_db-4.0.0 test/support/ddl_helper.rb
ibm_db-3.0.4-x86-mingw32 test/support/ddl_helper.rb
ibm_db-3.0.4 test/support/ddl_helper.rb
ibm_db-3.0.3-x86-mingw32 test/support/ddl_helper.rb
ibm_db-3.0.3 test/support/ddl_helper.rb
ibm_db-3.0.2-x86-mingw32 test/support/ddl_helper.rb
ibm_db-3.0.2 test/support/ddl_helper.rb
activejob-lock-0.0.2 rails/activerecord/test/support/ddl_helper.rb
ibm_db-3.0.1 test/support/ddl_helper.rb
ibm_db-3.0.1-x86-mingw32 test/support/ddl_helper.rb
activerecord-string-enum-0.0.2 test/support/ddl_helper.rb
activerecord-string-enum-0.0.1 test/support/ddl_helper.rb
activejob-lock-0.0.1 rails/activerecord/test/support/ddl_helper.rb