diff --git a/database.py b/database.py index 267c87a..f68e7c0 100644 --- a/database.py +++ b/database.py @@ -24,4 +24,17 @@ class DBConnector: self.conn.close() def _query(self, sql): - self.cur.execute(sql) \ No newline at end of file + self.cur.execute(sql) + + def read(self, **kwargs): + """Read rows from a database that match the specified filters. + + :param kwargs: Column constraints; i.e. what value to filter by in what column. + :returns: A list of dictionaries of all matching rows, or an empty list if no match.""" + pass + + def write(self, **kwargs): + """Write a row to the database. + + :param kwargs: Values to write for each database; specify each column separately!""" + pass \ No newline at end of file