add Query::execute()
This commit is contained in:
11
Query.php
11
Query.php
@@ -81,6 +81,17 @@ class Query extends Component implements QueryInterface
|
|||||||
return $this->getStatement($options, $db);
|
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
|
* @param $fields
|
||||||
* @return $this
|
* @return $this
|
||||||
|
Reference in New Issue
Block a user