From f307b3201dfba13689509d71d60fb4fb024101e5 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Tue, 19 Oct 2021 09:53:23 +0800 Subject: Basic database operations Define database format. Implement basic I/O operations and take_away / give_back methods. --- jimbrella/__main__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 jimbrella/__main__.py (limited to 'jimbrella/__main__.py') 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() + -- cgit v1.2.3