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