Skip to content

Commit b893e98

Browse files
committed
benchmark: don't specify host, port, user and password
PG* environment variables are used automatically.
1 parent 5a99e7b commit b893e98

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

benchmark/load-dump.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@
1616
user = ENV["PGUSER"]
1717
password = ENV["PGPASSWORD"]
1818
database = ENV["PGDATABASE"] || "ar_adbc_benchmark"
19-
uri = +"postgresql://"
20-
if user
21-
uri << user
22-
uri << ":#{password}" if password
23-
uri << "@"
24-
end
25-
uri << "#{host}:#{port || 5432}" if host
26-
uri << "/#{database}"
19+
uri = "postgresql:///#{database}"
2720

2821
class SqlLog < ActiveRecord::Base
2922
end

0 commit comments

Comments
 (0)