code: def setConnection(self, 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
docs: Assigns the backend connection for this database instance.
  
          :param connection: <str> || <orb.Connection>