Skip to content

Commit

Permalink
feat(database): add check of a table on start
Browse files Browse the repository at this point in the history
  • Loading branch information
lx-dev committed Mar 22, 2023
1 parent dda9bde commit 8563ee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/astraeus_common/io/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8563ee5

Please # to comment.