?? mysqli.h
字號:
#ifndef MYSQLI_H_#define MYSQLI_H_#include "MySQLi_Result.h"#include <string>#include <iostream>#include <mysql/mysql.h>class MySQLi{public: MySQLi(std::string hostname, std::string username, std::string password, std::string dbname, unsigned int port); virtual ~MySQLi(); int select_db(std::string dbname); MySQLi_Result* query(std::string query); void close(); private: MYSQL* mysql_conn; std::string m_hostname; unsigned int m_port; std::string m_username; std::string m_password; std::string m_dbname; std::string m_unix_socket; unsigned long m_client_flag; };#endif /*MYSQLI_H_*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -