コード例 #1
0
ファイル: test.py プロジェクト: arkdchst/technoatom-2020
def connection():
    connection = Connection(password='******', db_name='test')
    connection.drop_db()
    connection.connect()

    yield connection

    connection.drop_db()
コード例 #2
0
 def __init__(self, connection: Connection):
     self.connection = connection.connect()
     print('Connected to database Successfully')
     self.cursor = self.connection.cursor()