From dae57d0de2dabf22dbc876a3819dcdbe7e397d1e Mon Sep 17 00:00:00 2001 From: gavin Date: Mon, 23 May 2022 12:45:42 +0530 Subject: [PATCH] fix(db)!: Base methods should throw NotImplementedError --- frappe/database/database.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/database/database.py b/frappe/database/database.py index ab1d8ea4fa..c6cb162fa0 100644 --- a/frappe/database/database.py +++ b/frappe/database/database.py @@ -82,10 +82,11 @@ class Database(object): self._conn.select_db(db_name) def get_connection(self): - pass + """Returns a Database connection object that conforms with https://peps.python.org/pep-0249/#connection-objects""" + raise NotImplementedError def get_database_size(self): - pass + raise NotImplementedError def sql( self,