"""Database manager"""
from rejson import Client, Path


class Database:
    """Database handler"""

    def __init__(self, database_name, port=6379):
        self.database = Client(host=database_name, port=port, decode_responses=True)

    def flush(self):
        """Flushing a certain table of the database"""
        return self.database.flushdb()

    def import_data(self, keyname, data):
        """Load data into the database"""
        return self.database.jsonset(keyname, Path.rootPath(), data)

    def ping(self):
        """Tests the connection"""
        return self.database.ping()

9555774001da863c26972bd51ae30a4bbd955cd3
<mask token>


class Database:
    <mask token>
    <mask token>

    def flush(self):
        """Flushing a certain table of the database"""
        return self.database.flushdb()

    def import_data(self, keyname, data):
        """Load data into the database"""
        return self.database.jsonset(keyname, Path.rootPath(), data)

    def ping(self):
        """Tests the connection"""
        return self.database.ping()

<mask token>


class Database:
    <mask token>

    def __init__(self, database_name, port=6379):
        self.database = Client(host=database_name, port=port,
            decode_responses=True)

    def flush(self):
        """Flushing a certain table of the database"""
        return self.database.flushdb()

    def import_data(self, keyname, data):
        """Load data into the database"""
        return self.database.jsonset(keyname, Path.rootPath(), data)

    def ping(self):
        """Tests the connection"""
        return self.database.ping()

<mask token>


class Database:
    """Database handler"""

    def __init__(self, database_name, port=6379):
        self.database = Client(host=database_name, port=port,
            decode_responses=True)

    def flush(self):
        """Flushing a certain table of the database"""
        return self.database.flushdb()

    def import_data(self, keyname, data):
        """Load data into the database"""
        return self.database.jsonset(keyname, Path.rootPath(), data)

    def ping(self):
        """Tests the connection"""
        return self.database.ping()

<mask token>
from rejson import Client, Path


class Database:
    """Database handler"""

    def __init__(self, database_name, port=6379):
        self.database = Client(host=database_name, port=port,
            decode_responses=True)

    def flush(self):
        """Flushing a certain table of the database"""
        return self.database.flushdb()

    def import_data(self, keyname, data):
        """Load data into the database"""
        return self.database.jsonset(keyname, Path.rootPath(), data)

    def ping(self):
        """Tests the connection"""
        return self.database.ping()

"""Database manager"""
from rejson import Client, Path


class Database:
    """Database handler"""

    def __init__(self, database_name, port=6379):
        self.database = Client(host=database_name, port=port, decode_responses=True)

    def flush(self):
        """Flushing a certain table of the database"""
        return self.database.flushdb()

    def import_data(self, keyname, data):
        """Load data into the database"""
        return self.database.jsonset(keyname, Path.rootPath(), data)

    def ping(self):
        """Tests the connection"""
        return self.database.ping()
