File tree Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ jobs:
43
43
postgresql
44
44
sudo systemctl restart postgresql
45
45
sudo -u postgres -H psql -c "CREATE ROLE ${USER} SUPERUSER LOGIN;"
46
- - name : " Test: SQLite3"
47
- run : |
48
- bundle exec rake
49
- - name : " Test: PostgreSQL"
50
- env :
51
- ACTIVERECORD_ADBC_ADAPTER_BACKEND : postgresql
52
- run : |
53
- bundle exec rake
46
+ # - name: "Test: SQLite3"
47
+ # run: |
48
+ # bundle exec rake
49
+ # - name: "Test: PostgreSQL"
50
+ # env:
51
+ # ACTIVERECORD_ADBC_ADAPTER_BACKEND: postgresql
52
+ # run: |
53
+ # bundle exec rake
54
54
- name : Benchmark
55
55
run : |
56
56
bundle exec benchmark/load.rb
Original file line number Diff line number Diff line change 11
11
n_rows = 10000
12
12
n_columns = 100
13
13
14
- host = ENV [ "PGHOST" ] || "localhost"
15
- port = ENV [ "PGPORT" ] || "5432"
16
- user = ENV [ "PGUSER" ] || ENV [ "USER" ]
14
+ host = ENV [ "PGHOST" ]
15
+ port = ENV [ "PGPORT" ]
16
+ user = ENV [ "PGUSER" ]
17
17
password = ENV [ "PGPASSWORD" ]
18
18
database = ENV [ "PGDATABASE" ] || "ar_adbc_benchmark"
19
- uri = "postgresql://#{ user } :#{ password } @#{ host } :#{ port } /#{ database } "
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 } "
20
27
21
28
class SqlLog < ActiveRecord ::Base
22
29
end
23
30
SqlLog . establish_connection ( adapter : "postgresql" ,
24
31
host : host ,
25
- port : port . to_i ,
32
+ port : port & .to_i ,
26
33
username : user ,
27
34
password : password ,
28
35
database : "postgres" )
@@ -31,7 +38,7 @@ class SqlLog < ActiveRecord::Base
31
38
template : "template0" )
32
39
SqlLog . establish_connection ( adapter : "postgresql" ,
33
40
host : host ,
34
- port : port . to_i ,
41
+ port : port & .to_i ,
35
42
username : user ,
36
43
password : password ,
37
44
database : database )
You can’t perform that action at this time.
0 commit comments