Skip to content

Commit 476d463

Browse files
authored
Merge pull request #25 from OpenDataAlex/process_tracker_python-1
Process tracker python 1
2 parents ba3601b + 7ca9690 commit 476d463

17 files changed

+500
-60
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.travis.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,23 @@ install:
66
- make
77
services:
88
- postgresql
9+
- mysql
910
script:
1011
- make test
1112
after_success:
1213
- coveralls
1314
before_script:
1415
- mkdir $HOME/.process_tracker
15-
- mv configs/${database_type}_config.ini $HOME/.process_tracker/process_tracker_config.ini
16-
- psql -f dbscripts/postgresql_account_create.sql -U postgres
17-
- psql -f dbscripts/postgresql_process_tracker.sql process_tracking -U postgres
18-
- psql -f dbscripts/postgresql_process_tracker_defaults.sql process_tracking -U postgres
16+
- mv configs/${DB}_config.ini $HOME/.process_tracker/process_tracker_config.ini
17+
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_account_create.sql -U postgres; fi
18+
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_process_tracker.sql process_tracker -U postgres; fi
19+
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_process_tracker_defaults.sql process_tracker -U postgres; fi
20+
- if [[ "$DB" == "mysql" ]]; then mysql -u root < dbscripts/mysql_account_create.sql; fi
21+
- if [[ "$DB" == "mysql" ]]; then mysql -u root < dbscripts/mysql_process_tracker.sql; fi
22+
- if [[ "$DB" == "mysql" ]]; then mysql -u root < dbscripts/mysql_process_tracker_defaults.sql; fi
1923
env:
20-
- database_type=postgresql
24+
- DB=postgres
25+
- DB=mysql
2126
deploy:
2227
- provider: releases
2328
api_key:

Pipfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ sqlalchemy-utils="*"
1717
python-dateutil="*"
1818
psycopg2-binary="*"
1919
google-compute-engine = "*"
20+
snowflake-sqlalchemy = "*"
21+
pymysql = "*"
22+
cx-oracle = "*"
23+
pymssql = "*"
2024

2125
[requires]
2226
python_version = "3.7"

Pipfile.lock

Lines changed: 91 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configs/mysql_config.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[DEFAULT]
2+
log_level = ERROR
3+
data_store_type = mysql
4+
data_store_username = pt_admin
5+
data_store_password = Testing1!
6+
data_store_host = localhost
7+
data_store_port = 3306
8+
data_store_name = process_tracker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ data_store_username = pt_admin
55
data_store_password = Testing1!
66
data_store_host = localhost
77
data_store_port = 5432
8-
data_store_name = process_tracking
8+
data_store_name = process_tracker

dbscripts/mysql_account_create.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
drop database if exists process_tracker;
2+
create database process_tracker;
3+
create user pt_admin@'%' identified by 'Testing1!';
4+
grant all privileges on process_tracker.* to pt_admin;

0 commit comments

Comments
 (0)