From 8563ee5603837190e7b15ee1eaf4d49f64fd62cb Mon Sep 17 00:00:00 2001 From: lx-dev Date: Wed, 22 Mar 2023 08:17:29 +0100 Subject: [PATCH] feat(database): add check of a table on start --- src/astraeus_common/io/database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/astraeus_common/io/database.py b/src/astraeus_common/io/database.py index 1a78545..5f07e91 100644 --- a/src/astraeus_common/io/database.py +++ b/src/astraeus_common/io/database.py @@ -35,6 +35,7 @@ def __try_connection(self): with self.__db_connection() as connection: with connection.cursor(cursor_factory=DictCursor) as cursor: cursor.execute('SELECT 1') + cursor.execute('SELECT * FROM ASTRAEUS.BODY') def __db_connection(self): try: