def setConnection(self, connection):
        """
        Assigns the backend connection for this database instance.

        :param connection: <str> || <orb.Connection>
        """
        # define custom properties
        if not isinstance(connection, orb.Connection):
            conn = orb.Connection.byName(connection)
            if not conn:
                raise orb.errors.BackendNotFound(connection)
            connection = conn(self)
        else:
            connection.setDatabase(self)

        self.__connection = connection
Assigns the backend connection for this database instance.

        :param connection: <str> || <orb.Connection>