mysqli.h
来自「仿照php的mysqli扩展自己使用MySQL的C Interface实现了一个」· C头文件 代码 · 共 31 行
H
31 行
#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 + =
减小字号Ctrl + -
显示快捷键?