Sha256: 27f2db1723acca6afffa2ee4a4a0d6e2e2162e56704b4ecb2704f5f774acfe25

Contents?: true

Size: 240 Bytes

Versions: 8

Compression:

Stored size: 240 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

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/support/ddl_helper.rb
ibm_db-5.1.0-x86-mingw32 test/support/ddl_helper.rb
ibm_db-5.0.5-x86-mingw32 test/support/ddl_helper.rb
ibm_db-5.0.4-x86-mingw32 test/support/ddl_helper.rb
ibm_db-5.0.3-x86-mingw32 test/support/ddl_helper.rb
ibm_db-5.0.2-x86-mingw32 test/support/ddl_helper.rb
ibm_db-3.0.5-x86-mingw32 test/support/ddl_helper.rb
ibm_db-3.0.5 test/support/ddl_helper.rb