DbSqlAdapter.php 625 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. interface LtDbSqlAdapter
  3. {
  4. /**
  5. * Return SQL statements
  6. */
  7. public function setCharset($charset);
  8. public function setSchema($schema);
  9. public function showSchemas($database);
  10. public function showTables($schema);
  11. public function showFields($table);
  12. public function beginTransaction();
  13. public function commit();
  14. public function rollBack();
  15. public function limit($limit, $offset);
  16. /**
  17. * Retrive recordset
  18. */
  19. public function getSchemas($queryResult);
  20. public function getTables($queryResult);
  21. public function getFields($queryResult);
  22. /**
  23. * Parse SQL
  24. */
  25. public function detectQueryType($sql);
  26. }