This repository stores code developed for the Spring 2020 DBMS class @ University of Florida
- Shangde Gao - [email protected]
- Srija Gurijala - [email protected]
- Dimitrios Melissourgos - [email protected]
- Andrei Sura - [email protected]
- Mukul Yadav - [email protected]
- Login/CreateAccount @ github.com
- fork the repo https://github.com/indera/dbms
- clone the fork
git clone [email protected]:YOUR_USERNAME/dbms.git
- write code
- create pull request
$ eval "$(ssh-agent -s)"
$ ssh-add -K ~/.ssh/id_rsa
-
install python --> see https://realpython.com/installing-python/
-
check if python is installed
$ python --version ==> Python 3.7.6
-
create a virtual environment
$ python3 -m venv env
-
activate the virtual environment
$ source ./env/bin/activate
-
install dependencies
$ pip install -r requirements.txt
-
configure the two values in config/settings.py
$ cp config/settings.py.template config/settings.py
-
run a simple test (creates table
student
and inserts/reads data)$ python test_oracle.py
cd api && flask run --no-debugger
https://docs.sqlalchemy.org/en/13/dialects/oracle.html
-
Download the zip filefrom http://lisp.vse.cz/pkdd99/berka.htm and extract it to the
dbms/data
folder -
Create the tables using the file:
schema/create_oracle.sql
-
Run the import
$ python berka.py
[email protected]
https://it.cise.ufl.edu/wiki/Main_Page
-
Add foreign key constraints
-
Add support to create the tables automatically
$ python berka.py --create
-
Print some basic table stats (number of rows, date ranges covered...)
$ python berka.py --stats