public function execute()
    {
        try {
            $opts = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
            $pdo = new PDO('sqlite:' . $this->path, $opts);

            foreach ($this->queries as $query) {
                $pdo->query($this->phpci->interpolate($query));
            }
        } catch (\Exception $ex) {
            $this->phpci->logFailure($ex->getMessage());
            return false;
        }
        return true;
    }
public function execute()
    {
        try {
            $opts = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
            $pdo = new PDO('sqlite:' . $this->path, $opts);

            foreach ($this->queries as $query) {
                $pdo->query($this->phpci->interpolate($query));
            }
        } catch (\Exception $ex) {
            $this->phpci->logFailure($ex->getMessage());
            return false;
        }
        return true;
    }
public function execute ( ) { try { $ opts = array ( PDO :: ATTR_ERRMODE => PDO :: ERRMODE_EXCEPTION ) ; $ pdo = new PDO ( 'sqlite:' . $ this -> path , $ opts ) ; foreach ( $ this -> queries as $ query ) { $ pdo -> query ( $ this -> phpci -> interpolate ( $ query ) ) ; } } catch ( \ Exception $ ex ) { $ this -> phpci -> logFailure ( $ ex -> getMessage ( ) ) ; return false ; } return true ; }
Connects to SQLite and runs a specified set of queries.
@return boolean
Connects to SQLite and runs a specified set of queries .