Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def wrapper(*args, **kwargs):
if DatabaseConnections.connection('jardin_test').db_config.scheme in schemes:
return func(*args, **kwargs)
def db(self, role='replica', db_name=None):
name = db_name or self.db_names.get(role)
return DatabaseConnections.connection(name)
def reset_session():
DatabaseConnections.shuffle_connections()