diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-19 09:53:23 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-19 09:53:23 +0800 |
commit | f307b3201dfba13689509d71d60fb4fb024101e5 (patch) | |
tree | 56aaf2d29fbd739eb5bc2dc106940d9f4dc0f90d /jimbrella/__main__.py |
Basic database operations
Define database format. Implement basic I/O operations and take_away /
give_back methods.
Diffstat (limited to 'jimbrella/__main__.py')
-rw-r--r-- | jimbrella/__main__.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jimbrella/__main__.py b/jimbrella/__main__.py new file mode 100644 index 0000000..1e658c7 --- /dev/null +++ b/jimbrella/__main__.py @@ -0,0 +1,10 @@ +from .database import Database + +def test(): + db = Database("/home/fkfd/p/jimbrella/jimbrella.db.csv") + db.take_away(2, "Jim Brella", "1337", "10086") + db.give_back(1) + +if __name__ == "__main__": + test() + |