/** * Used to abstract the ownCloud database access away * * @param string $sql the sql query with ? placeholder for params * @param int $limit the maximum number of rows * @param int $offset from which row we want to start * @deprecated use prepare instead, will be removed in ownCloud 10 * @return \OC_DB_StatementWrapper prepared SQL query */ public function prepareQuery($sql, $limit = null, $offset = null) { $isManipulation = \OC_DB::isManipulation($sql); $statement = $this->connection->prepare($sql, $limit, $offset); return new \OC_DB_StatementWrapper($statement, $isManipulation); }