Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9aa151c
Create cs3110project.yaml
rsp224 Mar 21, 2023
27fbb5b
Create INSTALL.txt
rsp224 Mar 22, 2023
a648d9d
Added Documentation to database.mli
rsp224 Mar 22, 2023
f369361
Delete database.mli
rsp224 Mar 23, 2023
6e12d45
Merge pull request #15 from tf-mac/main
rsp224 Mar 23, 2023
8192629
Added Documentation to database.mli
rsp224 Mar 23, 2023
154899b
Merge pull request #16 from tf-mac/Raj
tf-mac Mar 23, 2023
0ff45f5
Minor fixes to database.mli
rsp224 Mar 23, 2023
c280fd3
Merge pull request #17 from tf-mac/Raj
rsp224 Mar 23, 2023
4368546
Added support for find parsing
JT-Klenke May 13, 2023
0f5d775
Added CLI test cases
JT-Klenke May 13, 2023
fdaecaf
First implemtn
tf-mac May 13, 2023
716f5f4
Quick merge
tf-mac May 13, 2023
cdaf6e9
Merge branch 'main' into JT
tf-mac May 13, 2023
895b66d
Merge pull request #19 from tf-mac/JT
tf-mac May 13, 2023
3b9861f
Fix cmp
tf-mac May 13, 2023
40d9de5
Merge branch 'JT' of github.com:tf-mac/CS3110-Final-Project into JT
tf-mac May 13, 2023
68c379c
Complete Find
tf-mac May 14, 2023
4ff31d8
Ooops
tf-mac May 14, 2023
5419581
Update at
tf-mac May 14, 2023
93807a5
Fix at
tf-mac May 14, 2023
607a9ee
CLI tests supports table prints
JT-Klenke May 14, 2023
70dea4c
Added Test cases, updated error
JT-Klenke May 15, 2023
66e0ff4
Finished CLI test cases to >95%
JT-Klenke May 15, 2023
446f1e6
removed bisect
JT-Klenke May 15, 2023
f44406e
Yippee!
tf-mac May 15, 2023
4fe8f9a
I want to sleep
tf-mac May 15, 2023
1845063
Finish docs
tf-mac May 15, 2023
e5019d8
We're done (in theory)
tf-mac May 15, 2023
c18b45d
Final commit
JT-Klenke May 15, 2023
de2996d
Final final check
JT-Klenke May 15, 2023
3df12a3
Merge pull request #22 from tf-mac/JT
tf-mac May 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions INSTALL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
How to Install

1. Unzip database.zip

2. cd to the correct file path

3. Run "make run" in the terminal
24 changes: 22 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
test:
build:
dune build lib

code:
-dune build
code .
! dune build --watch

run: build
OCAMLRUNPARAM=b dune exec bin/main.exe

test: build
OCAMLRUNPARAM=b dune exec test/main.exe

bisect: bisect-clean
-dune exec --instrument-with bisect_ppx --force test/main.exe
bisect-ppx-report html
bisect-ppx-report html

bisect-clean:
rm -rf _coverage bisect*.coverage

doc:
dune build @doc

opendoc: doc
@bash opendoc.sh
30 changes: 30 additions & 0 deletions cs3110project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
# Members of your group.
group:
- name: Thomas McFarland
netid: tfm62
- name: JT Klenke
netid: jtk96
- name: Raj Patel
netid: rsp224
# Your PM.
pm:
name: Shashaank Aiyer
netid: saa244
# Set to false if you don't want your gallery entry to be public.
publish: false
# Pithy title
title: "Strongly-typed Relational Database"
# OK if this is a Cornell Github link, but public gallery viewers won't be able to see it.
git-repo: "https://github.com/tf-mac/CS3110-Final-Project"
# If you have no demo screencast, replace the url string with an empty string ""
demo-video-url: ""
# Write a short, attention-grabbing description of your project.
desc: >
Our project is a relational database. We structure information in a
hash table. We can define custom types with OCaml primitives,
assign them to values, display those types to the user, and provide
references to other entries. The user can find values that match
certain expressions. The user can access all the functionality
through a command line interface that allows interaction with the
database.
31 changes: 24 additions & 7 deletions data/responses.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
{
"err_create_field_DNE": "That field does not exist in this type\n| ",
"err_create_field_wrong_type": "That value does not match the type of the field\n| ",
"err_create_empty_name": "Please enter a non-empty name\n| ",
"err_create_field_no_value": "Please input a variable and a value\n| ",
"err_create_field_already_entered": "",
"err_assign_empty": "",
"err_assign_no_id": "",
"err_create_field_already_entered": "This field has already been entered\n| ",
"err_assign_empty": "Please input a type name and id\n|> ",
"err_assign_no_id": "Please input an id for this instance\n|> ",
"err_assign_DNE": "That type does not exist\n|> ",
"err_defn_needs_type_name": "Please enter a type name for the definition\n|> ",
"err_defn_needs_ID_name": "Please enter a name for the ID of this type\n|> ",
"err_defn_already_exists": "\n Type already defined\n|> ",
"err_defn_no_name": "Please enter a name for this field\n| ",
"err_defn_invalid_type": "Not a recognized type\n| ",
"err_unknown_command": "",
"err_at_no_id": "",
"help_message": "\nTo define a custom dataframe, type the following,\nall valueNames must be unique:\ndef TypeName IdName\n type valueName\n ...\n type valueName\n\n\nTo assign values to the custom types:\nassign TypeName IdValue\n valueName = value\n ...\n valueName = value\n\nTo save to a file, use 'save <file>'\n\n|> "
"err_unknown_command": "Unknown command. Type help for a list of commands\n|> ",
"err_at_empty": "Please enter what the type and id of which to get an instance\n|> ",
"err_at_no_id": "Please enter an id of the instance you which to get\n|> ",
"err_at_column_not_int": "Column number should be an int\n|> ",
"err_at_invalid_type": "No type of that name\n|> ",
"err_at_column_out_of_range": "Column out of range. Hint: Index starts at 0\n|> ",
"err_at_id_DNE": "That ID does not exist\n|> ",
"unbound_type": "<unbound type>\n|> ",
"unbound_val": "<unbound val>\n|> ",
"no_entry": "No entry\n|> ",
"err_find_missing_type": "Must specify type in find\n|> ",
"err_find_invalid_expr": "Invalid comparison expression\n|> ",
"err_find_invalid_comparison": "Invalid comparison, use <> = > < >= <=\n|> ",
"err_find_invalid_type": "Cannot find type of that name\n|> ",
"err_find_wrong_type": "Wrong type in find expression\n|> ",
"err_find_var_DNE": "A variable in the expression does not exist\n|> ",
"help_message": "\nTo define a custom dataframe, type the following,\nall valueNames must be unique:\ndef TypeName IdName\n type valueName\n ...\n type valueName\n\n\nTo assign values to the custom types:\nassign TypeName IdValue\n valueName = value\n ...\n valueName = value\n\nTo save to a file, use 'save <file>'\n\nTo find a file, type 'find TypeName expr'\n'expr' must be of the form: 'variable compare value' separated by spaces.\nValid compare opperators include <> = > < <= and >=\nexpr can be chained using 'and'\n\n|> ",
"indent_end": "| <|\n|> ",
"indent": "| ",
"default": "|> ",
"welcome": "\n\nWelcome to the 3110 Database Command Line\nPlease describe the data you want to store.\nType 'quit' to quit, 'help' for help.\n\n"
}
Loading