Disconnects the database.

@return  void

@since   1.0
424941
public function disconnect()
	{
		// Close the connection.
		if (is_resource($this->connection))
		{
			pg_close($this->connection);
		}

		$this->connection = null;
	}
431618
protected void disconnect() {
		connected.set(false);
		synchronized (publishers) {
			for (Publisher publisher : publishers.values()) {
				try {
					publisher.shutdown();
				} catch (Exception ingored) {
				}
			}
			publishers.clear();
		}
		synchronized (subscribers) {
			for (Subscriber subscriber : subscribers.values()) {
				try {
					subscriber.stopAsync();
				} catch (Exception ingored) {
				}
			}
			subscribers.clear();
		}
		if (topicAdmin != null) {
			try {
				topicAdmin.close();
			} catch (Exception ingored) {
			}
			topicAdmin = null;
		}
		if (subscriptionAdmin != null) {
			try {
				subscriptionAdmin.close();
			} catch (Exception ingored) {
			}
			subscriptionAdmin = null;
		}
	}
825694
@Override
    public void disconnect() {
        log.debug("disconnect");
        if (conn != null) {
            streamDataMap.clear();
            conn.close();
        } else {
            log.info("Connection was null");
        }
    }
624279
public function close()
    {
        if ($this->manager !== null) {
            Yii::trace('Closing MongoDB connection: ' . $this->dsn, __METHOD__);
            $this->manager = null;
            foreach ($this->_databases as $database) {
                $database->clearCollections();
            }
            $this->_databases = [];
        }
    }
866125
public function disconnect(): void
  {
    if ($this->mysqli!==null)
    {
      $this->mysqli->close();
      $this->mysqli = null;
    }
  }
989864
public function disconnect()
	{
		if( $this->xmpp )
		{
			if( $this->printLog )
				echo $this->xmpp->log->printout();
			$this->xmpp->disconnect();
			$this->xmpp = NULL;
			return TRUE;
		}
		return FALSE;
	}
177326
def _disconnect(self):
        """"""
        for cluster in self._clusters:
            if 'connection' in cluster:
                connection = cluster.pop('connection')
                connection.close()
        # Remove all attributes that are database names so that next time
        # when they are accessed, __getattr__ will be called and will create
        # new Clients
        for dbname in self._mapped_databases:
            self.__delattr__(dbname)
        self._mapped_databases = []
327840
public static function disconnect(): void
  {
    if (self::$dl!==null)
    {
      self::$dl->disconnect();
      self::$dl = null;
    }
  }
1064507
public function disconnect($name)
    {
        if (isset($this->pdoArray[$name])) {
            $pdo    = $this->pdoArray[$name];
            if ($this->activePdo == $pdo) {
                $this->activePdo = null;
            }

            unset($this->pdoArray[$name]);
        }
    }
790420
public function disconnectCells() {
    	if ( $this->_cellCollection !== NULL){
            $this->_cellCollection->unsetWorksheetCells();
            $this->_cellCollection = NULL;
    	}
        //    detach ourself from the workbook, so that it can then delete this worksheet successfully
        $this->_parent = null;
    }
864134
public function disconnect(): void
	{
		if ($this->connected() === true)
		{
			fclose($this->connection);
			$this->connection = false;
		}
	}
51321
public function disconnect() {
        if ($this->isConnected()) {
            $tmp = $this->hConnection;
            $this->hConnection = null;
            pg_close($tmp);
        }
        return $this;

        // TODO: If there are open large object resources on the connection, do not close the connection before closing all
        //       large object resources.
        // @see  http://php.net/manual/en/function.pg-close.php
    }
1157013
public function closeConnection(): void
    {
        if ($this->isConnected) {
            @$this->currentLink->close();
            $this->isConnected = false;
            $this->currentLink = null;
            $this->currentDB = null;
            $this->selectedDB = '';
        }
    }
607557
public function disconnect()
    {
        if ($this->pdo !== null) {
            $this->doDisconnect($this->pdo);
            $this->pdo = null;
        }
    }
757766
public function drop()
    {
        $conn = $this->connection->getConnection();
        $db = r\db($this->connection->getDatabaseName());
        $db->tableDrop($this->table)->run($conn);
    }
966285
public function disconnect()
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }

        $this->websocket->close();
        $this->connected = false;
    }
853741
public function delete()
    {
        $this->getContext()->invokeApiPost('DATABASES', [
            'action' => 'accesshosts',
            'delete' => 'yes',
            'db' => $this->database->getDatabaseName(),
            'select0' => $this->getName(),
        ]);
        $this->database->clearCache();
    }