Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@retry(sf.InterfaceError, tries=3)
def execute(self, *query):
return super(DatabaseConnection, self).execute(*query)
@retry(pg.OperationalError, tries=3)
def connect(self):
connection = super(DatabaseConnection, self).connect()
connection.initialize(config.logger)
return connection
@retry(DRIVER.OperationalError, tries=3)
def connect(self):
return super(DatabaseConnection, self).connect()
@retry(sf.OperationalError, tries=3)
def connect(self):
return super(DatabaseConnection, self).connect()
@retry(
(
pg.InterfaceError,
pg.extensions.TransactionRollbackError,
pg.extensions.QueryCanceledError
),
tries=3)
def execute(self, *query):
return super(DatabaseConnection, self).execute(*query)
@retry(DRIVER.InterfaceError, tries=3)
def execute(self, *query):
return super(DatabaseConnection, self).execute(*query)