added MongoStatement class, modified DbDriver hierarchy

This commit is contained in:
Anton Grebnev
2011-11-15 16:55:12 +04:00
parent 229a39d682
commit 5bff74f20b
8 changed files with 288 additions and 130 deletions

View File

@ -36,22 +36,6 @@ abstract class SqlDbDriver extends DbDriver
}
/**
* @param string $sql
* @param mixed $params
* @return DbStatement
*/
public function query($sql, $params = array())
{
$this->connect();
if (!is_array($params)) {
$params = array($params);
}
$stmt = $this->prepare($sql);
$stmt->execute($params);
return $stmt;
}
/**
* @param string $table
* @param mixed $bind
* @param mixed $on_duplicate
@ -171,7 +155,6 @@ abstract class SqlDbDriver extends DbDriver
/**
* @return DbStatement
*/
abstract public function prepare($sql);
abstract protected function driverQuote($value);