added MongoStatement class, modified DbDriver hierarchy
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user