add Query::execute()
This commit is contained in:
parent
c3b9d78427
commit
be068d5039
11
Query.php
11
Query.php
|
@ -81,6 +81,17 @@ class Query extends Component implements QueryInterface
|
|||
return $this->getStatement($options, $db);
|
||||
}
|
||||
|
||||
public function execute($aql, $bindValues = [], $params = [])
|
||||
{
|
||||
$options = [
|
||||
'query' => $aql,
|
||||
'bindValues' => $bindValues,
|
||||
];
|
||||
$options = ArrayHelper::merge($params, $options);
|
||||
$statement = $this->getStatement($options);
|
||||
$statement->execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $fields
|
||||
* @return $this
|
||||
|
|
Loading…
Reference in New Issue