mysqli_stmt.h 1006 B

123456789101112131415161718192021222324252627
  1. #ifndef __MYSQLI_STMT_H
  2. #define __MYSQLI_STMT_H
  3. #include <mysql.h>
  4. #include "mysqli_result.h"
  5. #ifndef nullptr
  6. #define nullptr 0
  7. #endif
  8. class mysqli_stmt
  9. {
  10. public:
  11. mysqli_stmt();
  12. ~mysqli_stmt();
  13. void close(); // http://php.net/manual/en/mysqli-stmt.close.php
  14. bool bind_param(MYSQL_BIND *bind); // http://php.net/manual/en/mysqli-stmt.bind-param.php
  15. bool execute(); // http://php.net/manual/en/mysqli-stmt.execute.php
  16. void data_seek(my_ulonglong offset); // http://php.net/manual/en/mysqli-stmt.data-seek.php
  17. bool bind_result(MYSQL_BIND *bind); // http://php.net/manual/en/mysqli-stmt.bind-result.php
  18. bool fetch(); // http://php.net/manual/en/mysqli-stmt.fetch.php
  19. bool store_result(); // http://php.net/manual/en/mysqli-stmt.store-result.php
  20. unsigned long param_count(); // http://php.net/manual/en/mysqli-stmt.param-count.php
  21. void result_metadata(mysqli_result &result); // http://php.net/manual/en/mysqli-stmt.result-metadata.php
  22. private:
  23. MYSQL_STMT *_stmt;
  24. friend class mysqli;
  25. };
  26. #endif