23         if ($this->connection)
    26                 $this->connection = 
new PDO(
    30                         $this->cfg->driverOptions);
    32                 foreach($this->cfg->conQuery as $q)
    33                         $this->connection->query($q);
    35                 $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    43         protected function _dsn() {
    44                 return $this->cfg->driver.
':host='.$this->cfg->host.
';dbname='.$this->cfg->base;
    53                 $this->connection = null;
    63         public function prepare($sql, array $options=array()) {
    65                 return $this->connection->prepare($sql, $options);
    75         return $this->connection->lastInsertId();
    83         $this->connection->beginTransaction();
    91         $this->connection->commit();
    99         $this->connection->rollBack();
 
prepare($sql, array $options=array())