src/PDO/ConnectionPDOSqlite.php
/**
     * Initializes the DB connection.
     *
     * This method is invoked right after the DB connection is established.
     *
     * The default implementation turns on `PDO::ATTR_EMULATE_PREPARES`.
     *
     * if {@see emulatePrepare} is true, and sets the database {@see charset} if it is not empty.
     *
     * It then triggers an {@see EVENT_AFTER_OPEN} event.
     */
Initializes the DB connection.
This method is invoked right after the DB connection is established.

The default implementation turns on `PDO::ATTR_EMULATE_PREPARES`.

if  emulatePrepare is true, and sets the database  charset if it is not empty.

It then triggers an  EVENT_AFTER_OPEN event.
Initializes the DB connection . This method is invoked right after the DB connection is established . The default implementation turns on ` PDO :: ATTR_EMULATE_PREPARES ` . if emulatePrepare is true and sets the database charset if it is not empty . It then triggers an EVENT_AFTER_OPEN event .
private function initConnection(): void
    {
        $this->pdo = $this->driver->createConnection();
        $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        if ($this->getEmulatePrepare() !== null && constant('PDO::ATTR_EMULATE_PREPARES')) {
            $this->pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, $this->getEmulatePrepare());
        }
    }
private function initConnection ( ) : void { $ this -> pdo = $ this -> driver -> createConnection ( ) ; $ this -> pdo -> setAttribute ( PDO :: ATTR_ERRMODE , PDO :: ERRMODE_EXCEPTION ) ; if ( $ this -> getEmulatePrepare ( ) !== null && constant ( 'PDO::ATTR_EMULATE_PREPARES' ) ) { $ this -> pdo -> setAttribute ( PDO :: ATTR_EMULATE_PREPARES , $ this -> getEmulatePrepare ( ) ) ; } }
Initializes the DB connection.
Initializes the DB connection .