Sha256: 3c704b4d842072d2315f1470d1a3c5b5ce4635eeb49ab44dc1f35f62d553137d

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

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

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/support/ddl_helper.rb
ibm_db-5.4.1-x86-mingw32 test/support/ddl_helper.rb
ibm_db-5.4.0-x86-mingw32 test/support/ddl_helper.rb
ibm_db-5.3.2-x86-mingw32 test/support/ddl_helper.rb