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