Dibi\Connection::connect PHP Méthode

connect() final public méthode

Connects to a database.
final public connect ( ) : void
Résultat void
    public final function connect()
    {
        $event = $this->onEvent ? new Event($this, Event::CONNECT) : NULL;
        try {
            $this->driver->connect($this->config);
            $this->connected = TRUE;
            $event && $this->onEvent($event->done());
        } catch (Exception $e) {
            $event && $this->onEvent($event->done($e));
            throw $e;
        }
    }