1
0

iquerylogger.php 577 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OCP\Diagnostics;
  9. use Doctrine\DBAL\Logging\SQLLogger;
  10. interface IQueryLogger extends SQLLogger {
  11. /**
  12. * @param string $sql
  13. * @param array $params
  14. * @param array $types
  15. */
  16. public function startQuery($sql, array $params = null, array $types = null);
  17. public function stopQuery();
  18. /**
  19. * @return \OCP\Diagnostics\IQuery[]
  20. */
  21. public function getQueries();
  22. }