Sha256: dad37346c3411ed7b89343471530a992943442091b3b9943327cd8c639b06750

Contents?: true

Size: 679 Bytes

Versions: 26

Compression:

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

26 entries across 26 versions & 1 rubygems

Version Path
pact_broker-2.34.0 script/query.rb
pact_broker-2.33.0 script/query.rb
pact_broker-2.32.0 script/query.rb
pact_broker-2.31.0 script/query.rb
pact_broker-2.30.0 script/query.rb
pact_broker-2.29.0 script/query.rb
pact_broker-2.27.6 script/query.rb
pact_broker-2.27.5 script/query.rb
pact_broker-2.27.4 script/query.rb
pact_broker-2.27.3 script/query.rb
pact_broker-2.27.2 script/query.rb
pact_broker-2.27.0 script/query.rb
pact_broker-2.26.1 script/query.rb
pact_broker-2.26.0 script/query.rb
pact_broker-2.25.0 script/query.rb
pact_broker-2.24.0 script/query.rb
pact_broker-2.23.4 script/query.rb
pact_broker-2.23.3 script/query.rb
pact_broker-2.23.2 script/query.rb
pact_broker-2.23.1 script/query.rb