Sha256: 4078ca733d5bd98004fdd92108724dc86f732117fcef843d4857d31c2a61a0ca
Contents?: true
Size: 678 Bytes
Versions: 12
Compression:
Stored size: 678 Bytes
Contents
#!/usr/bin/env ruby require "benchmark" require "sequel" require "logger" require "table_print" DATABASE_CREDENTIALS = {logger: Logger.new($stdout), adapter: "sqlite", database: ARGV[0], :encoding => "utf8"} #DATABASE_CREDENTIALS = {logger: Logger.new($stdout), adapter: "sqlite", database: "pact_broker_database_test.sqlite3", :encoding => 'utf8'} #DATABASE_CREDENTIALS = {adapter: "postgres", database: "pact_broker", username: 'pact_broker', password: 'pact_broker', :encoding => 'utf8'} connection = Sequel.connect(DATABASE_CREDENTIALS) connection.timezone = :utc time = Benchmark.measure { puts connection[DATA.read].to_a } puts time.real __END__ select * from matrix
Version data entries
12 entries across 12 versions & 1 rubygems