statement.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 77 行

H
77
字号
////////////////////////////////////////////////////////////////////////// File Name 	: Statement.h// Written by	: Gday29@ewestsoft.com// Description	: SQL 巩阑 父电促..////////////////////////////////////////////////////////////////////////#ifndef __STATEMENT_H__#define __STATEMENT_H__// include files#include "Types.h"#include "Exception.h"#include "Connection.h"// forward declarationclass Result;////////////////////////////////////////////////////////////////////////// class Statement;//// SQL巩阑 父甸绢 叼厚俊 孽府茄促.////////////////////////////////////////////////////////////////////////class Statement {public:		// constructor	Statement() throw(); 	// constructor    Statement(char * fmt, ...) throw(Error);	// destructor	~Statement() throw();public:    	// 荤傈俊 瘤沥等 SQL 巩阑 啊瘤绊 孽府茄促.    Result * executeQuery() throw(SQLQueryException, Error);		// SQL 巩阑 罐酒辑 孽府茄促.	Result * executeQuery(char *,...) throw(SQLQueryException, Error);	Result * executeQuery(const string& sqlStatement) throw(SQLQueryException, Error);		// get SQL statement	string getStatement() const throw() { return m_Statement; }	// SQL 巩阑 瘤沥茄促.	void setStatement(char * fmt, ...) throw(Error);	// get connection object	Connection * getConnection() const throw() { return m_pConnection; }	// set connection object	void setConnection(Connection * pConnection) throw() { m_pConnection = pConnection; }	// get warning/error string	string getError() const throw() 	{ 		return(m_pConnection == NULL) ?("Not Associated with Connection Object") :(m_pConnection->getError()); 	}	// get affected rows	uint getAffectedRowCount() const throw() { return m_nAffectedRows; }	private:		// Connection	Connection * m_pConnection;	// SQL Statement

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?