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

Version Path
pact_broker-2.89.1 script/query.rb
pact_broker-2.89.0 script/query.rb
pact_broker-2.88.0 script/query.rb
pact_broker-2.87.0 script/query.rb
pact_broker-2.86.0 script/query.rb
pact_broker-2.85.1 script/query.rb
pact_broker-2.85.0 script/query.rb
pact_broker-2.84.0 script/query.rb
pact_broker-2.83.0 script/query.rb
pact_broker-2.82.0 script/query.rb
pact_broker-2.81.0 script/query.rb
pact_broker-2.80.0 script/query.rb